Unlimited canvas painting program
Tim Chase
tim at thechases.com
Thu Oct 24 17:46:57 EDT 2013
On 2013-10-24 12:16, markotaht at gmail.com wrote:
> How to create a program similar to paint, but the difference would
> be that the cursor would be always in the middle and the canvas
> moves or the camera is always fixed on the cursor as it moves
> around the canvas. And the canvas should be infinite. What would be
> reasonable to use?
To hold an (effectively) infinite *bitmap* canvas, you'd (effectively)
need an (effectively) infinite amount of memory. However, it could be
done with an (effectively) infinite *vector* canvas. That way you
could limit the on-screen rendering to just the clipped subset of the
vector collection.
You'd still want to make it easy to toggle between "draw" and "stop
drawing", but you could make a mouse-click.
To implement, just pick a GUI library tkinter, wx, or whatver.
-tkc
More information about the Python-list
mailing list