Anthony
Anthony

Reputation: 259

ccc4 Color List in COCOS2D

I'm looking for a tool or list that shows me different colours to the example below.

fillColor = ccc4(255, 0, 0,255);

Thanks in advance

Upvotes: 1

Views: 2196

Answers (4)

Inder Kumar Rathore
Inder Kumar Rathore

Reputation: 39978

Here is the online tools for it

  1. ARGB Convertor
  2. List of colors

Update

If you go through the docs ccc4(255, 0, 0,255); stands for ccc4(red,green,blue,opacity);

Upvotes: 2

tobyc
tobyc

Reputation: 2237

Try this XCode plugin that lets you preview UIColor instances. https://github.com/omz/ColorSense-for-Xcode

Upvotes: 2

Rushabh
Rushabh

Reputation: 3203

fillColor = ccc4(Red,Green,Blue,alpha);

Find that value using Check Link

Upvotes: 1

CodeSmile
CodeSmile

Reputation: 64478

Values are: red, green, blue and alpha (transparency) - in that order. Each value ranges from 0 (dark) to 255 (full brightness). Ignore alpha/transparency, it does not directly affect color.

You can use practically any image viewing or editing program that displays RGB values as either bytes (0-255) or hex codes (0x00 to 0xFF) to find out which values results in which color, and vice versa.

There are also plenty of RGB color charts on the web. Here's one example with commonly used colors.

Upvotes: 1

Related Questions