From Mask to Surface

June 2, 2010

The first simple shape methods have been implemented as well as some easy Pens. So far, writing an own/new Pen class is as easy as planned. Here are some images of a circle rendered with different Pens (this is directly taken from the allinone example included with the source, so feel free to view it “live”):

SolidPen - one solid color for all pixels

BlendPen - one rbga color blended in the background image

MyColorPen - an easy example for a custom Pen

TexturePen - shape filled with an image based texture

texture image used for the first example

TexturePen - just another texture (note: the texture can be exactly positioned with the texture offset)

texture image used for the second example


One comment

  1. Awesome
    im looking forward to it
    keep up the good job

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: