## Search found 37 matches

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...
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
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?
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.
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
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?
Jan 26, 2017 8:00
Forum: Beginners