Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
basitante
basitante's Profile
2
Posts
8
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
Examples controlP5 library doesn't work on android mode.
[7 Replies]
23-Apr-2013 01:11 PM
Forum:
Android Processing
I use processing 2.0b8 and examples controlP5 library doesn't work on android mode.
anyone knows why?
Android API 10
2.3.3
Mac OS X 10.6
thank you
Ketai. Background image ArrayList
[5 Replies]
20-Apr-2013 05:14 PM
Forum:
Android Processing
Hi there!
I´m working with ketai.ui library.
How add background image to menu. Can I add PImage and String to the same ArrayList?
import ketai.ui.*;
KetaiList selectionlist;
//KetaiVibrate vibe; // doesn't work
ArrayList<String> colorlist = new ArrayList<String>();
color backgroundcolor = color(0, 0, 0);
void setup()
{
orientation(PORTRAIT);
textSize(28);
textAlign(CENTER);
//vibe = new KetaiVibrate(this);
colorlist.add("Black");
colorlist.add("Red");
colorlist.add("Green");
colorlist.add("Blue");
colorlist.add("Gray");
colorlist.add("Black");
colorlist.add("Red");
colorlist.add("Green");
colorlist.add("Blue");
colorlist.add("Gray");
}
void draw()
{
background(backgroundcolor);
drawUI();
text("click screen to change background color", width/2, height/2);
}
void mousePressed()
{
selectionlist = new KetaiList(this, colorlist);
}
void onKetaiListSelection(KetaiList klist)
{
String selection = klist.getSelection();
if (selection == "Black")
backgroundcolor = color(0, 0, 0);
else if (selection == "Red")
backgroundcolor = color(255, 0, 0);
else if (selection == "Green")
backgroundcolor = color(0, 255, 0);
else if (selection == "Blue")
backgroundcolor = color(0, 0, 255);
else if (selection == "Gray")
backgroundcolor = color(128, 128, 128);
else if (selection == "Black")
backgroundcolor = color(0, 0, 0);
else if (selection == "Red")
backgroundcolor = color(255, 0, 0);
else if (selection == "Green")
backgroundcolor = color(0, 255, 0);
else if (selection == "Blue")
backgroundcolor = color(0, 0, 255);
else if (selection == "Gray")
backgroundcolor = color(128, 128, 128);
}
void drawUI()
{
pushStyle();
textAlign(LEFT);
fill(0);
stroke(255);
rect(0, 0, width/3, 100);
rect(width/3, 0, width/3, 100);
rect((width/3)*2, 0, width/3, 100);
fill(255);
text("Keyboard", 5, 60);
text("PopUp", width/3 + 5, 60);
text("Vibrate", width/3*2 + 5, 60);
popStyle();
}
«Prev
Next »
Moderate user : basitante
Forum