Search found 37 matches

by TurtleProgrammer
Feb 06, 2017 19:27
Forum: Beginners
Topic: Pixel
Replies: 21
Views: 1697

Re: Pixel

DIM n AS LONG DIM c AS INTEGER OPEN "e:\variabletest.txt" FOR OUTPUT AS #1 DO n = n + 1 PRINT n tmr: c = RND * 6 IF c = 0 THEN GOTO tmr PRINT #1, "blockcolor", n, c LOOP UNTIL n = 1002001 CLOSE #1 When I run the attached code I get a list of "Variable", "The Varia...
by TurtleProgrammer
Feb 05, 2017 4:53
Forum: Beginners
Topic: Pixel
Replies: 21
Views: 1697

Re: Pixel

One more last question for a while, but is it possible to call variable's numbers from an external file?

For example:

sample.txt has:

3
2
5

and sample.bas has:

a =
b =
c =

I need:

a = 3
b = 2
c = 5
by TurtleProgrammer
Feb 04, 2017 19:12
Forum: Beginners
Topic: Pixel
Replies: 21
Views: 1697

Re: Pixel

Is there a way to exit the FOR...NEXT before it has reached the maximum number, in this case 1000?
by TurtleProgrammer
Feb 02, 2017 9:50
Forum: Beginners
Topic: Pixel
Replies: 21
Views: 1697

Re: Pixel

I need the program to start from 1 to and go to 1000 (for example), and pick a color from the standard, red, blue, green, yellow, orange, and white.
by TurtleProgrammer
Feb 01, 2017 16:14
Forum: Beginners
Topic: Pixel
Replies: 21
Views: 1697

Re: Pixel

To clarify more clearly, I am writing a program where

x = 1001 pixels per line * y = 1001 lines

Then each pixel is a random color
by TurtleProgrammer
Feb 01, 2017 1:33
Forum: Beginners
Topic: Pixel
Replies: 21
Views: 1697

Pixel

What's the easiest way to create a randomly colored pixel from 1 to 1001 for example?
by TurtleProgrammer
Jan 26, 2017 8:00
Forum: Beginners
Topic: Custom Menu
Replies: 14
Views: 1481

Custom Menu

I am writing my own simple menu. The code I've written looks right to me but when I run it I get the current coordinates but the box does not show up at those coordinates. dim x as integer dim y as integer dim x2 as integer dim y2 as integer dim res as integer dim buttons as integer screenres 640, 4...

Go to advanced search