Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: dinhotheone on October 12, 2007, 03:39:00 pm

Title: white circle?
Post by: dinhotheone on October 12, 2007, 03:39:00 pm
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?
Title: white circle?
Post by: DJ Omnimaga on October 12, 2007, 06:04:00 pm
it's impossible in BASIC, even with the fast circle command (unless there's another hidden argument). And xlib doesn't have circle function
Title: white circle?
Post by: JonimusPrime on October 13, 2007, 03:53:00 am
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.
Title: white circle?
Post by: dinhotheone on October 13, 2007, 11:30:00 am
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...
Title: white circle?
Post by: kalan_vod on October 22, 2007, 03:05:00 pm
You could draw the circle (except using pixel off or point off), just have to make the calculations ;)wink.gif
Title: white circle?
Post by: DJ Omnimaga on October 22, 2007, 03:07:00 pm
true, but he would need to use lines so it's not too slow
Title: white circle?
Post by: JonimusPrime on October 23, 2007, 10:34:00 am
IF someone made an asm Lib to invert the screen you could invertit and then draw the circle and then un-invert it
Title: white circle?
Post by: rivereye on October 23, 2007, 11:22:00 am
2 circles maybe, one larger and the other smaller than the intended size of circle.
Title: white circle?
Post by: JonimusPrime on October 23, 2007, 03:05:00 pm
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
Title: white circle?
Post by: DJ Omnimaga on October 23, 2007, 04:48:00 pm
oh lol you can alerady do inverting with xLIB, Zapi and Codex
Title: white circle?
Post by: Netham45 on October 25, 2007, 08:25:00 am
[code]
for(x,1,94
for(y,1,63
pxl-chg(x,y
end
end
[code]
Title: white circle?
Post by: Liazon on October 25, 2007, 12:15:00 pm
lol

what's Zapi?
Title: white circle?
Post by: DJ Omnimaga on October 25, 2007, 05:09:00 pm
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)