rgb

fun rgb(red: Float, green: Float, blue: Float): NextColor

Creates a color from red, green, and blue values. You can use the NextColorDistanceSensor.debug to find these values.

Parameters

red

How much red (0–255).

green

How much green (0–255).

blue

How much blue (0–255).