[Extension] Magic Pencil

I think this one is fully on me, as even going back 2 years, to a much older version of the documentation, a call to image:drawImage(other_image, x, y) was never valid.

It must’ve been some undocumented overload of the method that I accidentally used, I’m surprised it worked for so long anyway. :man_shrugging:

It was thought to work in that way, several methods that receive a point (or rectangle) can receive the Point (or Rectangle) parameter or a sequence of arguments like x,y (or x,y,width,height). I think it’s not so hard to break this backward compatibility (just checking if the second argument is a Point or an integer, we can process both calls).

1 Like

Support for all drawing tools

An update to v2.0.0 was released.

Changes:

  • [Feature] Add a new mode - “Transform > Merge” - copies all painted over pixels into a new layer
  • [Feature] Support all drawing tools to work with the Magic Pencil (not only the Pencil Tool)
  • [Feature] Support using a subset of modes with sprites in Grayscale & Indexed Color Modes
  • [Feature] Add an option to minimize the Magic Pencil dialog window
  • [Improvement] “Outline > Tool” was changed to outline all objects that were painted over
  • [Improvement] Add widgets to control the Graffiti specks
  • [Improvement] Add a widget to control the Outline size
  • [Improvement] Add a single mode for “Change > Shift”, hide the shift options until it’s selected and allow for selecting multiple components
  • [Improvement] Minor performance improvement to the Shift Mode
  • [Improvement] Rename the Regular Mode to Disabled
  • [Improvement] Add a new section “Effect” with Graffiti and Outline Modes
  • [Improvement] Move the “Outline > Tool” Mode to the “Change” section as the Outline Mode
  • [Fix] Correctly apply effects when drawing on a previously empty cel
  • [Fix] Correctly update the GUI when using Lift Mode to immediately show where the new layer is on the timeline
  • [Fix] Update Magic Pencil dialog when the sprites Color Mode changes
  • [Fix] No longer add effects to pixels changed by commands
  • [Fix] No longer add effects to pixels changed on Tilemap layers
  • [Fix] No longer allow for changing foreground or background color when Magic Pencil requires Magic Pink or Magic Teal - Magic Pencil will revert to the Disabled Mode
1 Like

An update to v2.0.1 was released.

Changes:

  • [Improvement] Add widgets to control the Outline Mode behaviour
  • [Fix] Correctly handle painting with or on top of fully transparent pixels
  • [Fix] Correctly handle removing all pixels from a cel
  • [Fix] Correctly calculate changed pixels when painting with transparent colours

An update to v2.0.2 was released.

Changes:

  • [Fix] No longer throw an error when placing pixels outside of an existing cel (thanks to Ben for reporting this)