I am an old-time user of Turbo Pascal, including the Turtle Graphics. (Yes, I also drew on cave walls when I was a kid.)
However, there are no Turtle Graphics for Free Pascal, and I've been trying to research how to do a couple of simple drawings of a circle or a bar for a bar graph.
I've found a couple of examples which were supposed to be helpful,
http://wiki.freepascal.org/fcl-image , drawing a circle, but when I am copying this directly to a new program I'm getting errors with the passionRed : TFPColor = (Red:65535;Green:0;Blue:0;Alpha:65535) line, which is still just trying to get a color chosen without even attempting to draw anything. Somewhere I saw that the TFPColor was defined in a type statement as: TFPColor = record Red: Word; Green: Word; Blue: Word; Alpha: Word; end; and have that in the very simplistic Free Pascal program I'm writing to attempt to draw something, although it was not in the program at the wiki page and doesn't seem to matter if it is there or not. I've put in the uses portion of the program the classes, sysutils, FPImage, FPCanvas, FPImgCanv, FPWritePNG and the program compiled with those fine.
So I'm wondering what I'm doing wrong and missing, and even more basic is there a better way to be doing this than the wiki page I found?
Thank you for helping.