? Drawing a filled ellipse ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Drawing a filled ellipse

I'm totally not adding to the one-upsmanship of filled shapes going on around here. GLIPSE Origin X, Origin Y, Radius X, Radius Y, Fill state (1 = yes, 0 = no), Color DEF GLIPSE X%,Y%,RX%,RY%,F%,C% DIM _#=.,__#=. DIM T#=(((!.<<((!.<<!.)<<!.))OR(!.<<(!.<<!.))OR(!.<<!.))/(((!.<<!.)<<!.)OR(!.<<!.)OR(!.)))*(!.<<!.) DIM S#=(T#)/((!.<<!.<<!.<<!.<<!.)*((!.<<((!.<<!.)<<!.))OR(!.<<(!.<<!.))OR(!.<<!.))OR(!.<<!.<<!.<<!.)) FOR(_#)=(.)TO(T#)STEP(S#) IF(F%&&!.)THEN GTRI(X%+RX%*COS(_#)),(Y%+RY%*SIN(_#)),(X%),(Y%),(X%+RX%*COS(__#)),(Y%+RY%*SIN(__#)),(C%) ELSE GLINE(X%+RX%*COS(_#)),(Y%+RY%*SIN(_#)),(X%+RX%*COS(__#)),(Y%+RY%*SIN(__#)),(C%) ENDIF (__#)=(_#) NEXT(.) END I promise it works.
Author
MZ952
Updated
Rating
5 votes
Categories
Keywords
10 Comment(s) 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website T# is (close to) pi*2 S# is a syntax error, there's an extra ) on the end. (I assume it was meant to be 8) MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies It was missing a ( at the beginning I believe. I must've transcribed it wrong. Should be fixed now. Also, S# should be one radian. dfrost2 dfrost2 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself how would that work? It looks like it has loads of errors Y_ack Y_ack Head Admin Looks correct to me. What seems to be the issue? dfrost2 dfrost2 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself I'm just not used to using this syntax in SB. dfrost2 dfrost2 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself Maybe it works. I'm not used to assigning variables with "." like this: VAR A = . 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website . is the same as 0.0 dfrost2 dfrost2 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself I get it! Y_ack Y_ack Head Admin at least it's not all on one line... MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies Don't tempt me.