Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Spyro543 on April 29, 2011, 01:28:49 pm

Title: My first program ever - L Master
Post by: Spyro543 on April 29, 2011, 01:28:49 pm
I is so excited dat I has started programming in mah new Casio FX-9860G Slim!!!  :w00t:

It's called linedraw. It's very simple. There is a line and one of the lines is at the center of the screen (0,0) and you use the arrow keys to move the other end around. You can draw with this.  ;D It's simple and I'm proud of my work :D. I'll upload a screenshot and the file when I get home from school  :crazy:. I'm also planning a simple drawign program based off of this.
Title: Re: My first program evar! (LineDraw)
Post by: aeTIos on April 29, 2011, 01:30:51 pm
Sounds cool.
Title: Re: My first program evar! (LineDraw)
Post by: Munchor on April 29, 2011, 01:31:23 pm
Oh nice, a Casio fx-9806G Slim programmer :D

I remember my first calculator program too: a quadratic solver. Yours seems more complex though. Good job.
Title: Re: My first program evar! (LineDraw)
Post by: Spyro543 on April 29, 2011, 01:45:10 pm
Oh nice, a Casio fx-9806G Slim programmer :D

Wait you have a Casio FX-9860G Slim? Awesome!
I just got mine yesterday, ordered it and it finally came. Yesterday I was programming in it for a few hours straight and in all of the coded confusion I came up with this.

To move the one end of the line, I have this code:

Code: [Select]
F-Line 0,0,A,B
A and B are controlled by the buttons. Pressing a button on the D-Pad adds/subtracts 0.1 from/to A or B, and moving the one end of the line.

To make a drawing program I would eliminate the ClrGraph right after the F-line and edit the F-line to say this:

Code: [Select]
F-Line A,B,A,B
Which would make a dot that would be moved around the screen with the Arrow Keys. I would program a ClrGraph to execute when DEL is pressed, so the user can clear the graphing screen.

This would work right?

(P.S. I made a simple program that shows the number code of the button you pressed. Using this program, I made a chart that says wht the code of the buttons are. This is quite handy and I will make one and upload it if I ever have the time.)
Title: Re: My first program evar! (LineDraw)
Post by: Munchor on April 29, 2011, 01:45:57 pm
Oh nice, a Casio fx-9806G Slim programmer :D

Wait you have a Casio FX-9860G Slim? Awesome!

I didn't say that :( I only have a Casio fx-82ms :(
Title: Re: My first program evar! (LineDraw)
Post by: Spyro543 on April 29, 2011, 01:50:38 pm
Oh sorry. Jumping to conclusions. :|

My computers class will end in about 2 minutes. I'll resume posting when I get home. Computers calss is my 2nd to last period.

EDIT: If anyone knows a good AVI to Animated GIF converter for Ubuntu please tell me.
Title: Re: My first program evar! (LineDraw)
Post by: Spyro543 on April 29, 2011, 07:10:04 pm
EPIC PROJECT UPDATE:

LineDraw is now L MASTER. You can control both ends of the line now! ;D It uses the Arrow Keys for X1 and Y1 and 8, 2, 4 and 6 for X2 and Y2.