Jump to content


Photo

Your Creations!


  • Please log in to reply
5 replies to this topic

#1 Beth Robson

Beth Robson

    Veteran Member

  • O'Reilly Employee
  • PipPipPipPipPipPipPipPipPip
  • 377 posts
  • Gender:Female
  • Location:Seattle, WA
  • Interests:I am interested in computer science, the Web, social media and the internet, Mac development, and adult learning.

Posted 22 September 2010 - 09:39 AM

Hi,
If you've created some cool art or something slightly different - or totally different - with what you've learned in Processing & Arduino in Tandem, we'd love to hear about it. Please post your screenshots and descriptions of what you've done with what you've learned, and let us know if it's okay to use it for a public email or post about the course.

Thank you!

Elisabeth
Elisabeth Robson
Co-founder, WickedlySmart.com
Author: Head First JavaScript Programming, Head First HTML5 Programming, Head First HTML and CSS, Head First Design Patterns

#2 Beth Robson

Beth Robson

    Veteran Member

  • O'Reilly Employee
  • PipPipPipPipPipPipPipPipPip
  • 377 posts
  • Gender:Female
  • Location:Seattle, WA
  • Interests:I am interested in computer science, the Web, social media and the internet, Mac development, and adult learning.

Posted 22 September 2010 - 10:10 AM

Here's my creation. I wanted to create an effect of paint dripping down a canvas, plus have more "psychedelic" colors. So I added some code that randomly changes the color every 10 times we call recordLine:

CODE
if (switchHue == 0) {
randomHue = random(255);
lineHue = (lineHue * randomHue) % 255;
switchHue = 10;
}
switchHue--;


and then added some code to transform only the Y coordinate in the downward direction:

CODE
for(int k=0; k<totalVectors; k++) {
int whichVector = k % 25;
float transform = 0;
switch (whichVector) {
case 0: transform = 1.000; break;
case 1: transform = 1.002; break;
case 2: transform = 1.003; break;
case 3: transform = 1.004; break;
default: transform = 1.000; break;
}

//vectorArrayX[k] *=transform;
vectorArrayY[k] *=transform;


I've attached a screenshot. This is so much fun!

Elisabeth

Attached Files


Elisabeth Robson
Co-founder, WickedlySmart.com
Author: Head First JavaScript Programming, Head First HTML5 Programming, Head First HTML and CSS, Head First Design Patterns

#3 grauwald

grauwald

    Active Member

  • Members
  • PipPip
  • 20 posts

Posted 23 September 2010 - 08:34 AM

Thanks Elisabeth, really fun. Another quick way to change color is to increment the color properties.

CODE
// pseudo-code:

int h = 0; //hue

void draw() {
colorMode(HSB);
h++;
if (h>255) h=0;
stroke(h,255,255);
line(pmouseX, pmouseY, mouseX, mouseY);
}



QUOTE (beth_freeman @ Sep 22 2010, 11:10 AM) <{POST_SNAPBACK}>
Here's my creation. I wanted to create an effect of paint dripping down a canvas, plus have more "psychedelic" colors. So I added some code that randomly changes the color every 10 times we call recordLine:



#4 jully11

jully11

    New Member

  • Members
  • Pip
  • 2 posts

Posted 10 August 2011 - 04:44 AM

nice idea i think)

#5 gertudeglfaro

gertudeglfaro

    New Member

  • Members
  • Pip
  • 1 posts

Posted 15 December 2011 - 03:33 AM

They're written in fairly easy-to-follow instructions so beginners can give them a try. My website offers other information about crochet as well.
Guitar Center Promo Code

Attached Thumbnails

  • 4th-of-july-guitar-center-coupon-code.jpg


#6 JustinePlumbw

JustinePlumbw

    New Member

  • Members
  • Pip
  • 1 posts

Posted 24 February 2012 - 02:44 AM

you can't save them to your computer, only on disney create. however, you can can record it (free) on hypercam .
Nuance Coupons

Attached Thumbnails

  • 10591.jpg





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users