Code for my Javascript Colortable Automatic Art Generator - Copy and Paste and Modify at will... Reload Page for a Different Pattern

Screenshot of my Javascript Colortable Progran - gvan42
This is an Unchanging Image... 
The Actual Program is Below the Code... 
 
<html><body>
<script type = "text/javascript"> 
//this is the javascript code for generating colortables
// reload page for a different pattern
// copy and paste all code into notepad...
// save the file. With a name.html (ending with dot html)
// change dropdown box from text to all files... save it.
// open file with a browser to see table displayed
// open file with notepad to modify code
// PrtScn and paste into Photoshop
var rc=1; 
//red color from 0 to 255
var rcf=Math.floor( Math.random() *23 ); 
//red color factor- how fast red changes
var gc=1; 
var gcf=Math.floor( Math.random() *24 ); 
var bc=1; 
var bcf=Math.floor( Math.random() *25 ); 
//document.write(rcf, " ", gcf, " ",  bcf);
//display the random numbers selected
for ( i = 0; i < 46; i++ ) 

document.write("<table cellspacing=0 cellpadding=0 border=0 ><tr>"); 
for (j=0;j<72; j++)

//counters that go up then start again at the bottom
//or count downwards and loop around to the top...
rc=rc+rcf; 
if(rc<0) rc=rc+255;
if(rc>255) rc=rc-255; 
// make sure colors are withing valid range
gc=gc-gcf; 
if(gc<0) gc=gc+255;
if(gc>255) gc=gc-255; 
bc=bc-bcf; 
if(bc<0) bc=bc+255;
if(bc>255) bc=bc-255;
document.write("<td height=20 width=20 style=background-color:rgb("+rc+","+gc+","+bc+")></td>"); 
//make sure the above command is all on one line
//beware of wordwrap bugs

document.write("</tr></table> "); 

</script>
</body></html>


Popular Posts

Links to My Best Posts at gvan42 Blog
*The Violet Overgrow - An Eco-Warrior's Journey by Gregory Vanderlaan - FICTION

*Trump Confesses to Adultery! "Hey, Moses Was JUST JOKING When He Wrote those Ten Commandments...

*Generate Electricity and Clean Drinking Water AT THE SAME TIME. A Solar Powered Desalinization Plant Would Convert Seawater into Energy, Pure H2O and NaCl.

*Free Coloring Book Art by gvan42 - UFO and Alien Hieroglyphics

*Tree Sitters Protest Lignite Coal Mine in Hambach Forest, Germany

*The Passage of Roe v Wade Led to Fewer Unwanted Babies Being Born... and 20 Years Later, Less Violent Crime... Because Unwanted Babies Grow Up to Become Violent Criminals...

*FREE COLORING BOOK: Print The Drawings and Color Using Felt Pens, Pencils or Potatoshop... American Indian

*HEADLINE: Deadline for "Real ID" for Air Travel Postponed AGAIN Until May 7, 2025... WONDERFUL!

*My Music Video: FREE ALL THE CANNABIS PRISONERS - A Mockery of Nancy Ray Gun... Jest Say KNOW

*Bubble UP! Economics. Raise the Minimum Wage, Social Security and LOWER Taxes on 99% of Americans. Actually Collect Taxes on the Top 1%... We The People Will Spend that Extra Money in Our Paychecks and it will BUBBLE UP! Throughout The Entire Economy...

*How to Escape the Cult of Trump: Deprogramming by Family Members of the MAGA MORON is Essential... If Someone you Know has been Brainwashed... RESCUE THEM!


*The Best Five Restaurants Near Eureka, California - Eat a Fish, Watch the Boats...


*Trump: "The Art of the Failed Deal" Book. Every Deal in that book LOST MONEY. That's why He declared Bankruptcy SO MANY TIMES. Will his Business Stupidity cause the ENTIRE COUNTRY to Go Bankrupt?



*Photographs of a Journey to the Headwaters Forest - Now a State Reserve... Near Eureka, CA - Plus The Story of How It Came To Be!


*Rainbow Gathering July 1-7, 2024 Will Be In CALIFORNIA... Exact Location To Be Revealed June 15th... and As Soon as I Know, I'll Post Driving Directions and Maps Here... What IS The Rainbow Gathering? For Me, It's Woodstock with Amateur Musicians and I'm in the Band... It's a Week Long Backpack Trip for Thousands of People...



*Add THIS to Your Bucket List: Swimming at Bear Hole in Upper Bidwell Park, Chico California. Crystallized Black Lava Rocks - Basalt from the Eruption of Mount Lassen.


*Numbers have Cultural Meanings... A list from Zero to Infinity and Beyond... For example: 007 Means James Bond. 420 Means Marijuana. 5150 means Insane... and... 420 + 5150 = REEFER MADNESS!


*"Conspiracy Theories" that are ACTUALLY TRUE. MKULTRA, Cointelpro, CIA-Contra-Cocaine, Donald Rumsfeld Selling Weapons to Saddam Hussein, UFOs are Real... Sometimes people dismiss Truth as "Just a Conspiracy Theory" because they Don't LIKE THE TRUTH.


1967: The Summer of Love... San Francisco, Hippies, Flower Power, Peace, The Diggers, Haight Ashbury, LSD and the Grateful Dead. It certainly has been a Long Strange Trip. Congratulations to all those of us who have survived... One thing is for certain...The culture of the United States was radically different After the 1960's...





*American History: "The Thunder Machine" was a Giant Sheet Metal Sculpture that you Got Inside and Played like a Drum. Made by Ron Boise and used at Ken Kesey's Acid Tests.


For Maximum Effect, Don't Read This Book. Write Your Own! --- "Lessons Learned" by Gregory Vanderlaan. A Lifetime of Trial, Error and Survival Yielded These Words of Wisdom...


My Biff Rose Trip: Driving To a Cabin in the Woods - down The Coast of California from Arcata thru Ft Bragg to Mendocino... An Excellent Adventure!


How To Remove Smoke from Indoor Air. Tape a Filter to a Box Fan. During Wildfire Season the Air Indoors is Bad to Breathe...






Pretty Soon the Filter Turns Brown
from Smoke, Pollen and Dust.




















Free Coloring Book Art by gvan42 - UFO and Alien Hieroglyphics