[MATRIX-SIG] reverse of take?
Aaron Watters
arw@dante.mh.lucent.com
Thu, 26 Jun 1997 17:15:21 -0400
Ok. Just to be perverse, say I want to draw a 1d fractal
border on the huge 2d matrix using only the indices.
(I'll definitely have to look into your imagedraw stuff
tho!) -- Aaron Watters
----------
> From: Fredrik Lundh <fredrik_lundh@ivab.se>
> To: matrix-sig@python.org; Aaron Watters <arw@mh.lucent.com>
> Subject: Re: [MATRIX-SIG] reverse of take?
> Date: Thursday, June 26, 1997 5:01 PM
>
> >Ie, I want to draw a circle on a large array of 0 bytes
> >(without making another large array). solution: compute
> >the array of indices for the circle and set all the indices
> >to one.
>
> from ImageDraw import ImageDraw
>
> d = ImageDraw(im)
> d.setfill(1)
>
> d.ellipse((x0,y0,x1,y1))
>
> Oops, wrong SIG, sorry for the intrusion ;-)
>
> Cheers /F
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________