Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57474

Re: Unlimited canvas painting program

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: Unlimited canvas painting program
Date 2013-10-24 21:51 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <l4c4ol$d5m$1@reader1.panix.com> (permalink)
References <5d107d11-0abf-4180-a994-3368f12979c1@googlegroups.com> <mailman.1482.1382651119.18130.python-list@python.org>

Show all headers | View raw


On 2013-10-24, Tim Chase <tim@thechases.com> wrote:
> On 2013-10-24 12:16, markotaht@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.

Sparse arrays allow it to be sort-of implemented as long as most of
the bitmap is "empty".

> However, it could be done with an (effectively) infinite *vector*
> canvas.

Sort of.  Eventually you run out of bits to hold the coordinates.

> That way you could limit the on-screen rendering to just the
> clipped subset of the vector collection.

The same can be done for a sparse array of bitmap subsets.

-- 
Grant Edwards               grant.b.edwards        Yow! I'm totally DESPONDENT
                                  at               over the LIBYAN situation
                              gmail.com            and the price of CHICKEN
                                                   ...

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Unlimited canvas painting program markotaht@gmail.com - 2013-10-24 12:16 -0700
  Re: Unlimited canvas painting program Thomas Murphy <thomasmurphymusic@gmail.com> - 2013-10-24 15:22 -0400
    Re: Unlimited canvas painting program markotaht@gmail.com - 2013-10-24 12:32 -0700
      Re: Unlimited canvas painting program MRAB <python@mrabarnett.plus.com> - 2013-10-24 21:02 +0100
        Re: Unlimited canvas painting program albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-11-07 11:30 +0000
          Re: Unlimited canvas painting program Chris Angelico <rosuav@gmail.com> - 2013-11-08 00:04 +1100
  Re: Unlimited canvas painting program Tim Chase <tim@thechases.com> - 2013-10-24 16:46 -0500
    Re: Unlimited canvas painting program Grant Edwards <invalid@invalid.invalid> - 2013-10-24 21:51 +0000
      Re: Unlimited canvas painting program Tim Chase <python.list@tim.thechases.com> - 2013-10-24 17:04 -0500

csiph-web