|
Author |
Topic: how to built a simple Delay? (Read 270 times) |
|
guido Guest
|
how to built a simple Delay?
« on: Jun 19th, 2004, 9:04pm » |
|
Hi, what I wana do ist have something that looks like bin Hex Data displayed. It should just be a simple Type effect. Line by line or 4 number pairs at a Time. I?m pretty new to this, so excuse me for flodding the board with newbee questions. This is as far as I got. But all numbers get displayed at ones off course String words[] = { "0000 ", "0002 ", "00A0 ", "065F ", "0000 " , "0000 ", "0000 ", "0100 ", "0005 ", "A000 ", "340A ", "00B0 ", "0000 ", "0000 ", "5876 " }; Line ln; int randomhex; void setup () { size (800, 600); background(0); BFont f; f = loadFont("Bit_Trip7.vlw"); textFont(f, 10); for(int i = 0; i < 8; i++) { text(show, 0, i * ; } Thanks in advance. Guido
|
|
|
|
guido Guest
|
Re: how to built a simple Delay?
« Reply #1 on: Jun 19th, 2004, 9:11pm » |
|
Sorry, forgot some code. This is what I had so far.? String words[] = { "0000 ", "0002 ", "00A0 ", "065F ", "0000 " , "0000 ", "0000 ", "0100 ", "0005 ", "A000 ", "340A ", "00B0 ", "0000 ", "0000 ", "5876 " }; Line ln; int randomhex; String show = "0000 "; void setup () { size (480, 360); background(0); framerate(30); BFont f; f = loadFont("Bit_Trip7.vlw"); textFont(f, 10); } void loop (){ for(int i = 0; i < 8 ; i++) { int randomhex = int (random (15)); show = show + words[randomhex]; for(int j = 0; j < 8; j++) { text(show, 0, j * ; } } } Guido
|
|
|
|
guido Guest
|
Re: how to built a simple Delay?
« Reply #3 on: Jun 19th, 2004, 9:48pm » |
|
hi, that is al little to simple I need other stuff to be running. So I can?t stop the entire programm? besides, I think this is not working if it is an within a for loop. thanks guido
|
|
|
|
|