# Sequential colors

**URL:** https://forum.kirupa.com/t/sequential-colors/38472
**Category:** Uncategorized
**Created:** [December 23, 2003, 1:59pm UTC](https://forum.kirupa.com/t/sequential-colors/38472 "2003-12-23T13:59:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![norm1252003](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@norm1252003](https://forum.kirupa.com/u/norm1252003)
#### Post date: [December 23, 2003, 1:59pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/1 "2003-12-23T13:59:30Z")

</div>

here is a script that allows a random color to be displayed, how do I alter the script to make it not random but, sequential from white through all the colors to black. Here is the script:

onEnterFrame = function () {  
myCol = Math.round(Math.random()\*Math.pow(6, 16));  
beginFill(myCol, 50);  
moveTo(100, 100);  
lineTo(200, 100);  
lineTo(200, 200);  
lineTo(100, 200);  
lineTo(100, 100);  
endFill();  
};

cheers,

norm125

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 2:03pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/2 "2003-12-23T14:03:56Z")

</div>

white… through all the colors… to black … you mean grayscale?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 2:08pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/3 "2003-12-23T14:08:03Z")

</div>

sorry, man!

no, I want it to be rgb.

Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 2:13pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/4 "2003-12-23T14:13:11Z")

</div>

so where do white and black fit in?  
Colors exist in a 3D space. Hue, Brightness and Saturation. There is no linear movement that will go through them all. You can go through RGB fine enough but this will be at 100% brightness and 100% saturation - pure color. White is any color with 100 bright and 0 sat, black being any color and any sat @ 0 bright. (there are of course other color models you can use) … but the point is, there will be some variation in your cycling, so you’ll have to be a little more specific in how you want it to cycle 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 2:21pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/5 "2003-12-23T14:21:56Z")

</div>

What if I use the Hexidecibel number… I think that is what it is called… #FFFFFF, #FFFFCC all the way to #000000. Am I able to do that?

I guess I should let you know what I am trying to do. Joshua Davis made this effect on load of image that would reveal colors of am image on load. So I though if I had a mask that would run through the colors, then when a certain color was loaded it would reveal the color that is it mask by switching the alpha from 0 to 100. Here is the site that I saw the effect.

[http://www.enthrallogy.com/english/index.html](http://www.enthrallogy.com/english/index.html)

click on the view installation section.

cheers,

norm125

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 2:49pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/6 "2003-12-23T14:49:13Z")

</div>

where has senocular gone!!! :puzzle:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 23, 2003, 3:21pm UTC](https://forum.kirupa.com/t/sequential-colors/38472/7 "2003-12-23T15:21:44Z")

</div>

masks dont differentiate between color. They just show or hide things based on shape. Theres no way to single out a specific color and just show that.

In terms of hexidecimal numbers, they still represent colors - the same colors I was talking about before. It you just went down the line from FFFFFF to 000000 youd get a lot of random colors with only portions of smooth graduation from one color to the next. You need a path to travel if you are to travel a path.

Davis’s Vibe piece didnt use masks. Nor did it use the color object at all. There, you just have a photo of a car which was traced and made into about a 1000 or so movieclips and then had those movieclips removed and or placed on the screen over a period of time.
