log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Archive 27:3 has landed (News:)
- WROCC December 2024 talk o...- Andrew Rawnsley (R-Comp) (News:)
- RISC OS 'Advent' Calendar 2024 - David Pitt (News:)
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- November 2024 News Summary (News:1)
- Latest hardware upgrade from RISCOSbits (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:3)
- Accessing old floppy disks (Gen:3)
- November developer 'fireside' chat on saturday night (News:)
- RISCOSbits releases a new laptop solution (News:4)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
The Icon Bar: The Playpen: Graphic language
 
  Graphic language
  [mentat] (13:58 15/6/2002)
  monkeyson (11:39 8/5/2002)
    [mentat] (12:20 8/5/2002)
      [mentat] (12:21 8/5/2002)
        monkeyson (12:31 8/5/2002)
          Hertzsprung (12:44 8/5/2002)
            Spellbinder (12:48 8/5/2002)
              Hertzsprung (13:58 15/6/2002)
                Spellbinder (12:54 8/5/2002)
                  Hertzsprung (12:57 8/5/2002)
                    monkeyson (13:16 8/5/2002)
                      Hertzsprung (13:19 8/5/2002)
                        rich (13:58 15/6/2002)
                          Hertzsprung (13:58 15/6/2002)
                            rich (15:45 8/5/2002)
                              moss (13:58 15/6/2002)
                            monkeyson (13:58 15/6/2002)
                              Phlamethrower (18:00 8/5/2002)
                                arkick (13:58 15/6/2002)
                    Spellbinder (12:32 9/5/2002)
 
monkeyson Message #11239, posted at 11:39, 8/5/2002, in reply to message #11238
Unregistered user Imagehamster?
  ^[ Log in to reply ]
 
I don't have tourettes you're just a cun Message #11240, posted by [mentat] at 12:20, 8/5/2002, in reply to message #11239
[mentat]Fear is the mind-killer
Posts: 6266
Imagehamster?

Now that's just sick.

  ^[ Log in to reply ]
 
I don't have tourettes you're just a cun Message #11241, posted by [mentat] at 12:21, 8/5/2002, in reply to message #11240
[mentat]Fear is the mind-killer
Posts: 6266
Micro$oft Paintbrush! Gaaaaaaaaaaaaaaaaaah!

(How rude!)

  ^[ Log in to reply ]
 
monkeyson Message #11242, posted at 12:31, 8/5/2002, in reply to message #11241
Unregistered user MODE27:GCOL3:CIRCLE FILL 640,480,320:GCOL0:CIRCLE FILL 500,600,32:CIRCLE FILL 780,600,32:RECTANGLE FILL 500,300,280,32
  ^[ Log in to reply ]
 
Hertzsprung Message #11243, posted at 12:44, 8/5/2002, in reply to message #11242
Unregistered user Pah. In my day we used VDU commands!
  ^[ Log in to reply ]
 
Spellbinder Message #11244, posted at 12:48, 8/5/2002, in reply to message #11243
Unregistered user Not for circles you didn't!
  ^[ Log in to reply ]
 
Spellbinder Message #11246, posted at 12:54, 8/5/2002, in reply to message #11245
Unregistered user For A=0 TO 2*PI
MOVE 640,512
DRAW (SIN*A)*100,(COS*A)*100
NEXT A

Something like that I think.

  ^[ Log in to reply ]
 
Hertzsprung Message #11247, posted at 12:57, 8/5/2002, in reply to message #11246
Unregistered user That doesn't work. You get funny gaps all over the place.
  ^[ Log in to reply ]
 
monkeyson Message #11248, posted at 13:16, 8/5/2002, in reply to message #11247
Unregistered user REM This is a bit inefficient.

FOR A=0 TO 360 STEP 5
MOVE 640,512
MOVE 640+128*SINRAD(A+5),512+128*COSRAD(A+5)
PLOT 85,640+128*SINRADA, 512+128*COSRADA
NEXT

  ^[ Log in to reply ]
 
Hertzsprung Message #11249, posted at 13:19, 8/5/2002, in reply to message #11248
Unregistered user Is PLOT 85 a filled triangle - it is isn't it?
  ^[ Log in to reply ]
 
rich Message #11252, posted at 15:45, 8/5/2002, in reply to message #11251
Unregistered user In old-skool BASIC there wasn't a circle command. Now there is.
  ^[ Log in to reply ]
 
Phlamethrower Message #11255, posted at 18:00, 8/5/2002, in reply to message #11254
Unregistered user And to do a circle, you could rearrange x^2+y^2=r^2 to work out the start and end x-coords of each horizontal line of pixels that make up the circle.
  ^[ Log in to reply ]
 
Spellbinder Message #11257, posted at 12:32, 9/5/2002, in reply to message #11247
Unregistered user
That doesn't work. You get funny gaps all over the place.

Well I said something like that, I'd have to try it out but I've done it before with a quite simple and similar method.

  ^[ Log in to reply ]
 
Hertzsprung Message #11245, posted at 13:58, 15/6/2002, in reply to message #11244
Unregistered user Yep. Draw lots of little filled triangles tongue Actually, how do you draw a filled circle?
  ^[ Log in to reply ]
 
I don't have tourettes you're just a cun Message #11238, posted by [mentat] at 13:58, 15/6/2002
[mentat]Fear is the mind-killer
Posts: 6266
!Draw.

Artworks. Vantage. !Paint.

...

... IMAGEM*STER!!!!! tongue

  ^[ Log in to reply ]
 
rich Message #11250, posted at 13:58, 15/6/2002, in reply to message #11249
Unregistered user Yep, I'm pretty sure I used PLOT85 for triangles and PLOT69 for dots back in my Electron days... smile
  ^[ Log in to reply ]
 
Hertzsprung Message #11251, posted at 13:58, 15/6/2002, in reply to message #11250
Unregistered user So you do draw filled circles by drawing lots a little triangles? Woohoo! I was right grin How inefficient.... There must be a better way. Which reminds me - I never worked out an efficient way of drawing 'thick' lines...
  ^[ Log in to reply ]
 
moss Message #11253, posted at 13:58, 15/6/2002, in reply to message #11252
Unregistered user
In old-skool BASIC there wasn't a circle command. Now there is.

There was a set of PLOT commands that drew circles in the BBC Master, and in the GXR ROM... I think one of the set was PLOT 101, but don't hold me to that wink

[Edited by moss at 16:50, 8/5/2002]

  ^[ Log in to reply ]
 
monkeyson Message #11254, posted at 13:58, 15/6/2002, in reply to message #11251
Unregistered user
So you do draw filled circles by drawing lots a little triangles? Woohoo! I was right grin How inefficient.... There must be a better way. Which reminds me - I never worked out an efficient way of drawing 'thick' lines...

Off the top of my head...

DEF PROCthickline(x1,y1,x2,y2,th)
ang = ATN((y2-y1)/(x2-x1))
dx = th*SINang
dy = th*COSang
MOVE x1+dx,y1+dy
MOVE x1-dx,y1-dy
PLOT 85,x2+dx,y2+dy
PLOT 85,x2-dx,y2-dy
CIRCLE FILL x1,y1,th/2
CIRCLE FILL x2,y2,th/2
ENDPROC

[Edited by monkeyson at 17:35, 8/5/2002]

  ^[ Log in to reply ]
 
arkick Message #11256, posted at 13:58, 15/6/2002, in reply to message #11255
Unregistered user My fave for causing havoc at skool:

REPEAT
SYS "ColourTrans_SetGCOL",RND(&FFFFFF)<<8,,,&100
CIRCLE FILL RND(1280),RND(1024),RND(512)
UNTIL FALSE

grin

  ^[ Log in to reply ]
 

The Icon Bar: The Playpen: Graphic language