• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Problem while using Processing on Eclipse for app development

hi there, i was trying to build mobile apps through proclipsing i.e through processing running on eclipse. So for that i followed the proclipsing method and even succeeded. I ran a below given program on eclipse. But i was not able to find out that how to use android mode in eclipse as we do in processing? so that when i run the code the android app get automatically created.



[HIGH]package sonicpainter;

import processing.core.PApplet;

public class SonicPainter extends PApplet
{

public void setup()
{
size(1000,600);
background(0);
}
public void draw()
{}
public void mouseDragged()
{
float red = map(mouseX,0, width ,0,255);
float blue = map(mouseY,0,width,0,255);
float green = dist(mouseX,mouseY,width/2,height/2);
float speed = dist(pmouseX,pmouseY,mouseX,mouseY);
float alpha = map(speed, 0, 20, 0 ,5);
float lineWidth = map(speed, 0, 10, 10, 1);
lineWidth = constrain(lineWidth, 0, 10);
noStroke();
fill(0,alpha);
stroke(red,green,blue,255);
strokeWeight(lineWidth);
line(mouseX,mouseY,pmouseX,pmouseY);
line(mouseX,mouseY,pmouseX,pmouseY);
line(width/2+((width/2)-mouseX),mouseY,width/2+((width/2)-pmouseX),pmouseY);
line(mouseX,height/2+((height/2)-mouseY),pmouseX,height/2+((height/2)-pmouseY));
line(width/2+((width/2)-mouseX),height/2+((height/2)-mouseY),width/2+((width/2)-pmouseX),height/2+((height/2)-pmouseY));
}
public void mouseReleased()
{
noStroke();
fill(0);
rect(0,0, width, height);
}
}[/HIGH]
 
Back
Top Bottom