Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
scuttt
scuttt's Profile
2
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
[NEWBIE] Wrap around image (sccroller?)
[1 Reply]
11-Jun-2012 07:07 PM
Forum:
Programming Questions
I'm trying to get this film strip graphic to continusly wrap around the top and not stop after 1 revolution.
I tried duplicating the graphics and starting them further over but that doesn't work. How do I get around this? :(
Here is my code:
PImage h, h1, h2, h3;
int t;
void setup(){
size(750, 400);
smooth();
h = loadImage("topbanner.jpg");
h1 = loadImage("bottombanner.jpg");
h2 = loadImage("topbanner.jpg");
h3 = loadImage("bottombanner.jpg");
t = -h.width;
}
void draw(){
background(255);
image(h, t, 0);
image(h1, t, 350);
image(h2, t+750, 0);
image(h3, t+750, 350);
t += 10;
if(t > width) t = -h.width;
}
Thanks very much for your help :)
DODGE and BURN - How to put the BURN inside a fill?
[3 Replies]
10-Jun-2012 01:53 PM
Forum:
Programming Questions
Just put it out there that I literally just started today with Processing so very much a begineer.
What I'm basically trying to create is a simple dodge and burn tool like you get in photoshop.
void draw(){
PImage steve = loadImage("test.jpg");
if(mousePressed){
if(mouseButton==LEFT){
fill(BURN);
smooth();
noStroke();
ellipse(mouseX,mouseY,20,20);
if(rad==1){
line(x1,y1,mouseX,mouseY);
}
}
}
How would I get an ellipse that when mouse pressed made the image dodged or burnt in the area of the ellipse?
any help would be great thanks
Nick
«Prev
Next »
Moderate user : scuttt
Forum