Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
vanman007
Email ID:
tp_vanman@hotmail.com
vanman007's Profile
5
Posts
7
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
Gradient background fps drop
[3 Replies]
14-Jul-2013 07:42 AM
Forum:
Programming Questions
Hi.
I want to make a gradient background. I want the program for android.
But it drops from the default 60 fps to 21 fps.
how can i make it easier for the program so it don't drop that hard. I don't mind if the solution is alittle worse graphic
i also tried to put an image of the same gardient, as background it helped alittle was down to 35fps.
So i just ask if theres a better way than this:
void setup(){
size(960,540);
}
void draw(){
for (int i = 0; i <= height; i++) {
float inter = map(i, 0, height, 0, 1);
color c = lerpColor(color(196,254,255),color(0,58,254) , inter);
stroke(c);
line(0, i, width, i);
}
println(frameRate);
}
Selection
[1 Reply]
05-Jul-2013 10:21 AM
Forum:
General Discussion
Hi
I want my program to know when im above and under a line with changeing slope
if you look at the image. I wan't it to know when i hold the mouse under the line in all the gray area
how would i go around and do this?
String add citation how to?
[2 Replies]
03-Jul-2013 03:23 PM
Forum:
Programming Questions
i need to add the citation char this: "
to a string but how do i do this?
this is an examp of what i want:
String someting=" " ";
Implementing Processing to web problem
[10 Replies]
13-Jun-2013 05:44 AM
Forum:
Processing with Other Languages
First i implementet it "inline" i took the example from this page
http://processingjs.nihongoresources.com/processing%20on%20the%20web/#inpage
and it worked.
but i want to load the code from a file like this example
http://processingjs.nihongoresources.com/processing%20on%20the%20web/#onpage
but it dosen't work for me. Here is what I use:
(Index.html)
Html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Processing Page</title>
<script type="text/javascript" src="processing.js"></script>
</head>
<body>
<canvas id="mysketch" data-processing-sources="mysketch.pde"/></canvas>
</body>
</html>
(mysketch.pde)
PDE:
void setup() {
size(200,200);
}
void draw() {
ellipse(10,10,10,10);
}
(processing.js)
oscp5 android getting ip
[9 Replies]
15-May-2013 12:41 PM
Forum:
Android Processing
Hi. I want to get my smartphone ip address automatically with somting like NetInfo.print(); but when i use this it tells me a wrong address it says my ip is 127.0.0.1 which i know is not true.
so anyone know how i can get the right ip?
«Prev
Next »
Moderate user : vanman007
Forum