I am currently busy with converting the Processing code into C++. It's not fully 100% compatible with Java Processing, but it's good enough. The main reason behind this conversion is the speed gain.
I converted most methods that doesn't need the canvas to display something. I will be starting with the canvas soon, but i am unsure if i must focus on OpenGL (every platform) or directX (Windows only).
The problem i currently have with this project, is that i don't know if i get a conflict with the licence that Processing currently has. Can somebody tell me about this?
I made this program to test the dragon curve formula. I am stuck at a point to where to tell the program to continue drawing instead of drawing everything from the start. I want the animation, like how the fractal is beeing drawn, to speed up.
Is there a easy solution to read out the position and angle, for example?
Thanks!
boolean Bold;
int lineLength = 3;
HashMap ref = new HashMap();
void setup() {
size(1000, 800);
background(255);
for (int f = 0, c = 0; f<27000; f++)
if ((f & ((f & -f)<<1))==0) ref.put(new Integer(c++), new Integer(0));
I just watched
this youtube movie and i was thinking that this way of presentation would be great if it would be made in Processing. Do you guys know if this already exists?
p.s. I don't want to discus the subject of the (youtube) movie because, it's a trap.
I am trying to make a (java) program that communicates with an other (java) program. After some searching i found out that doing it serializable, would be the easiest way because i don't have to worry about the format. So i found this example in my book Head First: Java. Except, the code below does work, but gives an error after a while ("NotSerializableException"). If i look at the output then it seems to include the Processing constants also, i didn't expect this.
Is there a way to get this working? Thanks.
p.s. made with Processing 1.5.1.
import java.io.*;
void setup() {
GameChar Elf = new GameChar(50, "ranged", "bow");
try {
ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(sketchPath+"/data/game.txt"));
I just found out that Google made a translator so that Java will be converted to Objective-C. It can be found
here.
I don't know much about C in general, but it seems that Objective-C is only used in IOS.
While i don't really understand this move made by Google, i instantly tried to figure out if it is possible to run on my PC or Android device. Perhaps somebody can tell me?
According to Wikipedia, every GCC compiler can compile Objective-C code, so i think it's possible. It would be great if we can program in Processing (read: Java) and compile it to C.
I recently bought a Android phone and i managed to create programs for it in Processing 1.5.1. I tried to use 2.06, but i get error messages while compiling (Android mode), so i use 1.5.1. :(
The problem(s) however i currently have, is with the canvas. So i have a few questions about that.
Processing uses the whole screen to display my work, this is a great feature but it also means that it removes the notification bar (the bar that display the battery, time, wifi, BT, USB, notifications, etc etc.). Is there a way to display this bar again? Or is it possible to make my canvas smaller so that the bar is visible at all times?
There was recently a similar question about this, but the question was about the bar with the back, home, settings button that sits at the bottom of the screen (status bar?). On my phone this bar is not part of the screen, but anyhow, there was no answer for this problem. So far i know, Google is busy to make this standard belong to the screen for the new devices. So i want to know if it's possible to display this bar also?
3rd question: Sun/Oracle always demanded that the canvas is visible when you run a Java application. On Android however this demand is obsolete. Is there a way to hide the canvas so that a program can run in the background?
Last question: I still have a problem with the screen orientation. The application restarts when i rotate my phone. This is not a real problem, but there is always a black screen in between before my application shows again. Is there a way to prevent this?