HISE Docs

Colours

The Colours keyword gives you access to one function (withAlpha ) and a list of named Colours that can be used in a Panels g context.

Class methods

fromVec4

Converts a colour from a [r, g, b, a] float array to a uint32 value.

Colours.fromVec4(var vec4)



mix

Linear interpolation between two colours.

Colours.mix(var colour1, var colour2, float alpha)



toVec4

Converts a colour to a [r, g, b, a] array that can be passed to GLSL as vec4.

Colours.toVec4(var colour)



withAlpha

Returns a colour value with the specified alpha value.

Colours.withAlpha(var colour, float alpha)



withBrightness

Returns a colour with the specified brightness.

Colours.withBrightness(var colour, float brightness)



withHue

Returns a colour with the specified hue.

Colours.withHue(var colour, float hue)



withMultipliedAlpha

Returns a colour with a multiplied alpha value.

Colours.withMultipliedAlpha(var colour, float factor)



withMultipliedBrightness

Returns a colour with a multiplied brightness value.

Colours.withMultipliedBrightness(var colour, float factor)



withMultipliedSaturation

Returns a colour with a multiplied saturation value.

Colours.withMultipliedSaturation(var colour, float factor)



withSaturation

Returns a colour with the specified saturation.

Colours.withSaturation(var colour, float saturation)