Author Topic: image() enhanced  (Read 841 times)

0 Members and 1 Guest are viewing this topic.

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
    • View Profile
image() enhanced
« on: October 05, 2022, 06:44:14 PM »
New syntax: image(char mode, int left, int right, int width, int height);

Action: If mode = 0, makes a copy of part of the screen, if mode = 1, puts that copy back.
You can now specify a rectangle, so you can do an animation on some graph. Draw the graph, put it into the buffer with image().
Then you can draw over the graph and restore it anytime with image(), draw again etc.
See time list flower for an example.
Greetings from Groningen Netherlands.