core.bones.color

Classes

ColorBone

ColorBone is a custom bone class for storing color values in the ViUR framework.

Module Contents

class core.bones.color.ColorBone(*, mode='rgb', **kwargs)

Bases: core.bones.base.BaseBone

ColorBone is a custom bone class for storing color values in the ViUR framework. It inherits from the BaseBone class in the viur.core.bones.base module.

Parameters:
  • type – A string representing the bone type, set to “color”.

  • mode – A string specifying the color mode, either “rgb” or “rgba”. Default is “rgb”.

  • **kwargs – Additional keyword arguments passed to the BaseBone constructor.

type = 'color'
mode = 'rgb'
singleValueFromClient(value, skel, bone_name, client_data)