NetLogo Help: extract-rgb

### extract-rgb1.0

#### extract-rgb color

Reports a list of three values in the range 0 to 255 representing the levels of red, green, and blue, respectively, of the given NetLogo or RGB(A) color.

    show extract-rgb red
    => [215 50 41]
    show extract-rgb cyan
    => [84 196 196]
    show extract-rgb [31 41 59]
    => [31 41 59]

See also approximate-rgb, approximate-hsb, extract-hsb.

Take me to the full NetLogo Dictionary