O'Reilly Forums: Your Creations! - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Your Creations! Posts of screenshots showing your creations

#1 User is offline   Beth Robson 

  • Veteran Member
  • PipPipPipPipPipPipPipPipPip
  • Group: O'Reilly Employee
  • Posts: 376
  • Joined: 17-September 08
  • 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
0

#2 User is offline   Beth Robson 

  • Veteran Member
  • PipPipPipPipPipPipPipPipPip
  • Group: O'Reilly Employee
  • Posts: 376
  • Joined: 17-September 08
  • 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 File(s)


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

#3 User is offline   grauwald 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 20
  • Joined: 26-August 10

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:


0

#4 User is offline   jully11 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 10-August 11

Posted 10 August 2011 - 04:44 AM

nice idea i think)
0

#5 User is offline   gertudeglfaro 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 15-December 11

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 thumbnail(s)

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

0

#6 User is offline   JustinePlumbw 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 24-February 12

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 thumbnail(s)

  • Attached Image: 10591.jpg

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users