Kojo Wiki

docs for Kojo

View source on GitHub

A list of the pre-defined ColorMaker colors is shown below. Any of these colors can be used like this:

// draw an aliceBlue line
setPenColor(cm.aliceBlue)
forward(100)

An easy way to use these colors in your programs is via the code-completion feature. Type cm. (or ColorMaker.) in the script editor and then type Ctrl+Space. This will pop-up a list of the predefined colors shown below. Select a color from this list and hit enter to get that color into your program.

Predefined colors

aliceBlue
aliceBlue

antiqueWhite
antiqueWhite

aqua
aqua

aquamarine
aquamarine

azure
azure

beige
beige

bisque
bisque

black
black

blanchedAlmond
blanchedAlmond

blue
blue

blueViolet
blueViolet

brown
brown

burlyWood
burlyWood

cadetBlue
cadetBlue

chartReuse
chartReuse

chocolate
chocolate

coral
coral

cornSilk
cornSilk

cornflowerBlue
cornflowerBlue

crimson
crimson

cyan
cyan

darkBlue
darkBlue

darkCyan
darkCyan

darkGoldenrod
darkGoldenrod

darkGray
darkGray

darkGreen
darkGreen

darkGrey
darkGrey

darkKhaki
darkKhaki

darkMagenta
darkMagenta

darkOliveGreen
darkOliveGreen

darkOrange
darkOrange

darkOrchid
darkOrchid

darkRed
darkRed

darkSalmon
darkSalmon

darkSeaGreen
darkSeaGreen

darkSlateBlue
darkSlateBlue

darkSlateGray
darkSlateGray

darkSlateGrey
darkSlateGrey

darkTurquoise
darkTurquoise

darkViolet
darkViolet

deepPink
deepPink

deepSkyBlue
deepSkyBlue

dimGray
dimGray

dimGrey
dimGrey

dodgerBlue
dodgerBlue

fireBrick
fireBrick

floralWhite
floralWhite

forestGreen
forestGreen

fuchsia
fuchsia

gainsboro
gainsboro

ghostWhite
ghostWhite

gold
gold

goldenrod
goldenrod

gray
gray

green
green

greenYellow
greenYellow

grey
grey

honeydew
honeydew

hotpink
hotpink

indianRed
indianRed

indigo
indigo

ivory
ivory

khaki
khaki

lavender
lavender

lavenderBlush
lavenderBlush

lawngreen
lawngreen

lemonChiffon
lemonChiffon

lightBlue
lightBlue

lightCoral
lightCoral

lightCyan
lightCyan

lightGoldenrodYellow
lightGoldenrodYellow

lightGray
lightGray

lightGreen
lightGreen

lightGrey
lightGrey

lightPink
lightPink

lightSalmon
lightSalmon

lightSeaGreen
lightSeaGreen

lightSkyBlue
lightSkyBlue

lightSlateGray
lightSlateGray

lightSlateGrey
lightSlateGrey

lightSteelBlue
lightSteelBlue

lightYellow
lightYellow

lime
lime

limeGreen
limeGreen

linen
linen

magenta
magenta

maroon
maroon

mediumAquamarine
mediumAquamarine

mediumBlue
mediumBlue

mediumOrchid
mediumOrchid

mediumPurple
mediumPurple

mediumSeaGreen
mediumSeaGreen

mediumSlateBlue
mediumSlateBlue

mediumSpringGreen
mediumSpringGreen

mediumTurquoise
mediumTurquoise

mediumVioletRed
mediumVioletRed

midnightBlue
midnightBlue

mintCream
mintCream

mistyRose
mistyRose

moccasin
moccasin

navajoWhite
navajoWhite

navy
navy

oldLace
oldLace

olive
olive

oliveDrab
oliveDrab

orange
orange

orangeRed
orangeRed

orchid
orchid

paleGoldenrod
paleGoldenrod

paleGreen
paleGreen

paleTurquoise
paleTurquoise

paleVioletRed
paleVioletRed

papayaWhip
papayaWhip

peachPuff
peachPuff

peru
peru

pink
pink

plum
plum

powderBlue
powderBlue

purple
purple

red
red

rosyBrown
rosyBrown

royalBlue
royalBlue

saddleBrown
saddleBrown

salmon
salmon

sandyBrown
sandyBrown

seaGreen
seaGreen

seaShell
seaShell

sienna
sienna

silver
silver

skyBlue
skyBlue

slateBlue
slateBlue

slateGray
slateGray

slateGrey
slateGrey

snow
snow

springGreen
springGreen

steelBlue
steelBlue

tan
tan

teal
teal

thistle
thistle

tomato
tomato

turquoise
turquoise

violet
violet

wheat
wheat

white
white

whiteSmoke
whiteSmoke

yellow
yellow

yellowGreen
yellowGreen


Copyright © 2010–2024 Kogics Foundation. Licensed as per Terms of Use.