Author Topic: My first program ever - L Master  (Read 4363 times)

0 Members and 1 Guest are viewing this topic.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
My first program ever - L Master
« 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.
« Last Edit: April 29, 2011, 07:11:05 pm by Spyro543 »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3913
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: My first program evar! (LineDraw)
« Reply #1 on: April 29, 2011, 01:30:51 pm »
Sounds cool.
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: My first program evar! (LineDraw)
« Reply #2 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.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: My first program evar! (LineDraw)
« Reply #3 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.)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: My first program evar! (LineDraw)
« Reply #4 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 :(

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: My first program evar! (LineDraw)
« Reply #5 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.
« Last Edit: April 29, 2011, 03:31:58 pm by Spyro543 »

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: My first program evar! (LineDraw)
« Reply #6 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.