Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Currently Decker seems to be able to draw with different brushes, but there's no difference at all in what's drawn, and this is discouraged by Decker switching away from the Fill tool on a change to the brush. So rather than an additional fill function, there's room in the design for the existing fill function to repeat the brush so drawing with different brushes would be useful.

Still, patterns also have animation and have this interesting effect: if you get a pattern into a canvas and move the canvas, the pattern reflects card coordinates rather than canvas coordinates. Paste this widget and move it around to see that:

%%WGT0{"w":[{"name":"canvas1","type":"canvas","size":[25,38],"pos":[282,72],"image":"%%IMG2ABkAJgAMGwUAExsHABIbBwASGwcADBsEAAIbCAAKGwYAARsIAAkbCAABGwcACRsIAAEbBwAJGwgAARsHAAkbCAABGwgACBsRAAgbEQAIGxEACBsSAAcbEgAHGxIABxsTAAYbCQABGwkABhsJAAEbCQAGGwkAARsJAAcbCAABGwoABhsTAAYbEwAGGxMABxsSAAcbEgAHGxIABxsSAAcbEgAIGwgAARsIAAgbCAABGwgACBsIAAEbCAAIGwgAAhsHAAkbBwADGwUAChsHAAQbAwAMGwUAFRsDACY="}],"d":{}}
(+2)

In the original HyperCard, if you picked a pattern (say, bricks) and filled an area, then picked another pattern (say diagonal lines) and clicked in the same place, only one brick would fill with diagonal lines: the pattern is converted to black-and-white pixels on the canvas, and that limits the next use of the flood tool.

In Decker, filling with diagonal lines replaces all the area that was filled with bricks, not just one brick.

That means the drawing tools aren’t drawing black-and-white pixels, they’re drawing pattern numbers, and sixty times a second Decker converts those pattern numbers into patterns of black-and-white pixels. Animated patterns would work by just changing which pattern to use on every consecutive frame.

As a result, the flood-fill tool works how childhood-me expected it to, and things like canvas.segment[] do the right thing with tiled dither patterns, instead of messing them up. However, it might also mean that “coloured patterns” are more difficult than you’d expect.