Re:App for Kids Makes iPhone App Programming Easy
by simonh on Thursday September 03, 2015 @12:19PM
(#10165796)
Modern computer operating systems won't let you arbitrarily switch pixels on the screen on or off, so you'd need to either write a program that uses a GUI library to create a window, controls, etc, or generate an image file you can open in a viewer.
For Python, matplotlib(1) will let you generate plots and graphs, including simple x/y graphs, or you could use the built-in TkInter(2) library to do a simple GUI with a drawing canvas.
(1)http://www.labri.fr/perso/nrougier/teaching/matplotlib/ (2) http://www.python-course.eu/tkinter_canvas.php
Re:App for Kids Makes iPhone App Programming Easy
by jeffwass on Thursday September 03, 2015 @01:15PM
(#10166162)
Thanks. The drawing canvas seems just what I'm looking for.
(And yeah, I totally get I can't just flip arbitrary screen screen pixels, any more than I can access arbitrary system memory like I used to be able to with PEEK and POKE).
What is the equivalent of that today? For instance, is there an easy-to-use Python library that lets kids do simple drawing with ease?
Ie, on the TRS-80's Level II BASIC, just doing SET(X,Y) coloured a white pixel at that coordinate, and RESET(X,Y) turned it black. And you could see immediately the utility of applying FOR loops to make horizontal and vertical lines, etc.
I don't remember QBASIC, but the customized BASIC on my Tandy 1000 In the late 80's had graphics modes with I think PSET(X,Y,C) to light pixel with color C, and even had some built-in commands for making line, rectangles, circles, and ellipses.
So it was very easy to type a few lines and get something cool on the screen, but still required a bit of thought on x,y coordinages and some programming constructs to do anything complex.
I only dabble a bit in Python, but what's the best way to do something like that today?
I think there's much more of a feeling of "Wow, look what I made!" after drawing something this way than just using the painting mode for sprites in Scratch.