Color

From ActiveWiki

Jump to: navigation, search
create color red applied to the lower sphere object.
create color red applied to the lower sphere object.

The color command assigns a new color to every polygon on an object.

Contents

[edit] Usage

    color color [name=name]

[edit] Description

[edit] Color

The color argument specifies the color to apply. The color can either be specified as one of many preset word values or as a "raw" hexadecimal value giving the red/green/blue component values (the same format as used for the "BGCOLOR=" tag in HTML).

PresetCodeSample
aquamarine 70DB93
black 000000
blue 0000FF
brass B5A642
bronze 8C7853
brown A62A2A
copper B87333
cyan 00FFFF
darkgrey 00FFFF
forestgreen 238E23
gold CD7F32
green 00FF00
grey 707070
lightgrey C0C0C0
magenta FF00FF
maroon 8E236B
navyblue 23238E
orange FF7F00
orangered FF2400
orchid DB70DB
pink FF6EC7
red FF0000
salmon 6F4242
scarlet 8C1717
silver E6E8FA
skyblue 3299CC
tan DB9370
teal 007070
turquoise ADEAEA
violet 4F2F4F
white FFFFFF
yellow FFFF00

[edit] Name

The optional name argument specifies the name of the object to color. Object names are assigned via the name command.

[edit] Examples

    create color red
  • Colors an object colored entirely red.
    create color FF0000
  • Same as above, using the hexadecimal value for red.
    activate color name=water blue
  • This creates an object which, when clicked on, changes the color of any objects nearby named "water" to blue.

[edit] External Links

Object Scripting

Triggers: CreateBumpActivateAdoneCollideSdoneEnter ZoneExit Zone

Commands: AddforceAddtorqueAnimateAstartAstopCameraColliderColltagColorCoronaEnviExamineFrameGroupLightLinkLockMatfxMediaMidiMoveNameNoisePictureRotateSayScale SeqShadowSignSolidSoundTagTeleport / TeleportxTextureURLVelocityVisibleWarpWeb

Personal tools
In other languages