WmMead

Project 09

Another small step forward programmatically, but big step forward artistically. With this project, I have introduced an array that contains color schemes. Each time you refresh the page, you can potentially get a different color scheme, making this program visually very different from the previous versions.

I really like how the color schemes can help create aestheticly pleasing compositions. Building in the potential for multiple color schemes makes this piece stand out as a big step forward for this project.

Code Snippets for 09

Introducing an array of color schemes so that a random color scheme is chosen at the start of the program. The rest of the program remains the same.
An array color scheme arrays...
// An array of color schemes...
var colorScheme = new Array();

colorScheme[0] = new Array ("#D8C358", "#6D0839", "#D0E799", "#25271E", "#FBEFF4" );
colorScheme[1] = new Array ("#000000", "#ad0202", "#c2ad6c" );
colorScheme[2] = new Array ("#3c7c59", "#a4e1f1", "#220845", "#b79829", "#472e00" );
colorScheme[3] = new Array ("#000000", "#a4e1f1", "#b79829" );
colorScheme[4] = new Array ("#c6c655", "#487d29", "#151814", "#dbd1eb", "#37297d" );
colorScheme[5] = new Array ("#000000", "#c6c655", "#37297d" );
colorScheme[6] = new Array ("#330d54", "#9bb6c5", "#d3e2cc", "#6e0f06", "#f1e5d5" );
colorScheme[7] = new Array ("#000000", "#d3e2cc", "#6e0f06" );

// pull one color scheme...
var colors = colorScheme[getRandomInt(0, 7)];