Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "TINT"

From Creatures Wiki
Jump to navigation Jump to search
Line 21: Line 21:
 
==Rotation and Swap==
 
==Rotation and Swap==
 
[[File:RGB color circle.png|right]]
 
[[File:RGB color circle.png|right]]
Rotation causes the color picker to move a specified number of degrees around the color wheel. Swap refers to a technique used in [[wikipedia:infrared photography|infrared photography]] to make colors seem more normal.[https://pario.no/2008/06/09/color-channel-swapping-in-photoshop/]  In the ''Creatures'' series, it swaps the values of the blue and red channel by the amount specified - 128 will leave it as is, values of under 128 will make the sprite redder, and values of over 128 will make the sprite bluer.[http://www.gamewareeurope.com/GWDev/cdn/CDN_more.php?CDN_article_id=11] Rotation and swap affect the base color of the sprites (such as the spots on a ChiChi).
+
Rotation causes the color picker to move a specified number of degrees around the color wheel. Swap refers to a technique used in [[wikipedia:infrared photography|infrared photography]] post-processing to make colors seem more normal.[https://pario.no/2008/06/09/color-channel-swapping-in-photoshop/]  In the ''Creatures'' series, it swaps the values of the blue and red channel by the amount specified - 128 will leave it as is, values of under 128 will make the sprite redder, and values of over 128 will make the sprite bluer.[http://www.gamewareeurope.com/GWDev/cdn/CDN_more.php?CDN_article_id=11] Rotation and swap affect the base color of the sprites (such as the spots on a ChiChi).
  
 
==Examples==
 
==Examples==

Revision as of 03:16, 2 May 2017

Color in the Creatures series works on a RGB color model.

TINT is a CAOS command used in Creatures 3, Docking Station, and Creatures Village to change the colour of agents. Understanding this command can help in understanding pigment bleed genes for those games.

TINT for Input

Syntax: TINT (command) RED_TINT (integer) GREEN_TINT (integer) BLUE_TINT (integer) ROTATION (integer) SWAP (integer)

This tints the TARG agent with the red, green, blue tint and applies the colour rotation and swap as per pigment bleed genes. Specify the PART first for compound agents. The tinted agent or part now uses a cloned gallery, which means it takes up more memory, and the save world files are larger. However it also no longer needs the sprite file. Also, tinting resets camera shy and other properties of the gallery. See TINO for a quicker version that tints only one frame.

TINT for Output

Syntax: TINT (integer) ATTRIBUTE (integer)

Returns a tint value for an agent - currently it works only on Skeletal Creatures. Attribute can be:

  • 1 - Red
  • 2 - Green
  • 3 - Blue
  • 4 - Rotation
  • 5 - Swap

Rotation and Swap

RGB color circle.png

Rotation causes the color picker to move a specified number of degrees around the color wheel. Swap refers to a technique used in infrared photography post-processing to make colors seem more normal.[1] In the Creatures series, it swaps the values of the blue and red channel by the amount specified - 128 will leave it as is, values of under 128 will make the sprite redder, and values of over 128 will make the sprite bluer.[2] Rotation and swap affect the base color of the sprites (such as the spots on a ChiChi).

Examples

To set the colour of an agent, where RRR is the amount of red, GGG is the amount of green, BBB the amount of blue, and SSS/RRR are the swap/rotation of the colour (all are numbers from 0 to 256)

targ hots tint RRR GGG BBB RRR SSS

See also

External links