View Full Version: white circle?

Omnimaga: The Coders of Tomorrow > Calculator help and support > white circle?


Title: white circle?
Description: can it be done?


dinhotheone - October 13, 2007 02:39 AM (GMT)
i was trying to make a game and i ran into a problem, i need to draw a white circle but i cant figure out how. i figured that the whiteline rotated a bunch would look dumb so i was wondering if anyone know any other methods. i am using xlib but i dont think that that has a circle function. So, any ideas?

DJ Omnimaga - October 13, 2007 05:04 AM (GMT)
it's impossible in BASIC, even with the fast circle command (unless there's another hidden argument). And xlib doesn't have circle function

TheStorm - October 13, 2007 02:53 PM (GMT)
Are the circles a set dimension or does it have to be any size?
because if they are a set dimension you could use a xLib and a circle sprite to erase it.

dinhotheone - October 13, 2007 10:30 PM (GMT)
yeah, thats what i was thinking, i figured i'd end up makeing some 16x16 sprites. well atleast now they can look like an explosion...

kalan_vod - October 23, 2007 02:05 AM (GMT)
You could draw the circle (except using pixel off or point off), just have to make the calculations ;)

DJ Omnimaga - October 23, 2007 02:07 AM (GMT)
true, but he would need to use lines so it's not too slow

TheStorm - October 23, 2007 09:34 PM (GMT)
IF someone made an asm Lib to invert the screen you could invertit and then draw the circle and then un-invert it

rivereye - October 23, 2007 10:22 PM (GMT)
2 circles maybe, one larger and the other smaller than the intended size of circle.

TheStorm - October 24, 2007 02:05 AM (GMT)
No that is now what I mean
you start with
00011000
00100100
00100100
00011000
invert it
11100111
11011011
11011011
11100111
then draw the circle again
11111111
11111111
11111111
11111111
then un-invert it
00000000
00000000
00000000
00000000

DJ Omnimaga - October 24, 2007 03:48 AM (GMT)
oh lol you can alerady do inverting with xLIB, Zapi and Codex

Netham45 - October 25, 2007 07:25 PM (GMT)
[code]
for(x,1,94
for(y,1,63
pxl-chg(x,y
end
end
[code]

Liazon - October 25, 2007 11:15 PM (GMT)
lol

what's Zapi?

DJ Omnimaga - October 26, 2007 04:09 AM (GMT)
Codex ancestor. It featured a non working 8x8 sprite routine, non working 12x8 map routine, which saved maps as 8xp files (using chaos asm compiler (which doesnt work)) , a non working picture storing feature (allowing to save pics as 8xp files) and a working multi size sprite routine. It also had a working stand alone program with many features found in codex and a scrolling routine with some nifty features (altough buggy)




* Hosted for free by InvisionFree