Aside from backgrounds I  think explicitly supporting patterns could be quit. 
Interesting, not sure what the api would look like, but you should probably be 
able to fill and stroke with them.

Wrt background, I think the default should be White, but maybe we should 
support None to not draw it too.

Perhaps if fill and stroke support patterns we can also pass one them to 
background.

Having an explicit pattern api that works everywhere is a lot less cracktastic 
than my initial idea of just passing the image and tile params to background.

On Thu Jun 3rd, 2010 10:49 AM BST ricardo lafuente wrote:

>On 06/03/2010 12:13 AM, Stuart Axon wrote:
>> It would mean that we wouldn't need to draw once with a single colour and
>> then over draw that with images.
>
>Aha -- got it.
>
>Even then, background() is not mandatory; drawing on a backgroundless 
>image will result in a transparent background. (not sure if Nodebox also 
>does this, but definitely a good feature in my book :)
>
>Still, the image fill sounds exciting.
>
>>
>> Maybe I should try coming up with a syntax and we can see if it makes
>> any sense :)
>
>That would be great :)
>
>:r
>
>>
>>   S++
>>
>>
>>
>> ----- Original Message ----
>>> From: Dave Crossland<[email protected]>
>>> To: [email protected]
>>> Sent: Wed, June 2, 2010 9:52:19 PM
>>> Subject: Re: [shoebot-devel] Extending shoebot api to use neglected bits of 
>>> cairo :)
>>>
>>> On 2 June 2010 22:15, ricardo lafuente<
>>> href="mailto:[email protected]";>[email protected]>  wrote:
>>>
>>>> it
>>> supports filling with images, mirrored or not.
>>>
>>> I'm thinking of
>>> the "preferably one way to do one thing" principle in
>>> Python. How would
>>> this be an improvement from using image() passing the size
>>> of the
>>> canvas?
>>
>> Is "filling with images" how image() works?
>>
>
>_______________________________________________
>Shoebot-devel mailing list
>[email protected]
>http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net



      
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net

Reply via email to