Author Topic: sprite editor  (Read 51590 times)

0 Members and 1 Guest are viewing this topic.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: sprite editor
« Reply #105 on: September 14, 2020, 02:21:22 am »
I couple of important buttons I think you guys should have: BLEND and NO BLEND, and REPLACE.

(No) Blend is a simple toggle which dictates whatto do with an alpha color.   When on, your color blends into the background.  (RGBA(128,128,128,128) might fade to a light pink while on a deep red background, for example.). When off, the area selected becomes that value, instead.

Replace simply lets you choose a color in the image, and then replace it with another.  You could select black, for instance, and with a single click turn it all red.

In combination, the two provide the extremelt useful functionality of letting one choose a 255 alpha black, and transform it into a 255 alpha clear, before saving.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: sprite editor
« Reply #106 on: September 14, 2020, 01:15:10 pm »
Update: now drawing different sized tiles or sprites from 3X3 pixels to 64X64 pixels (still finding little clunkers so won't post code yet).

Here is Celtic Knot testing at 15X, I attached the 15X Cletic knot file so you can check out it's pixel size :)
Spr Draw v04b3 w 15X Celtic Knot.PNG
* Spr Draw v04b3 w 15X Celtic Knot.PNG (Filesize: 44.28 KB, Dimensions: 1027x702, Views: 438)

* 15X Celtic Sqr Knot.png (Filesize: 0.14 KB, Dimensions: 15x15, Views: 418)
« Last Edit: September 14, 2020, 01:22:52 pm by bplus »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: sprite editor
« Reply #107 on: September 15, 2020, 12:46:50 am »
Hey @johnno56  and all!

Here is SprDraw v04b3 another overhaul and some refinements, see how you get along without any instructions ;-))

Oops there is a sub folder too, just a sec...  OK my tests of 2nd zip look good.

* SprDraw v04b3.zip (Filesize: 395.19 KB, Downloads: 275)
« Last Edit: September 15, 2020, 12:56:49 am by bplus »