Author Topic: ShowPicture Colorized Effect  (Read 84 times)

miker1264

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-1
ShowPicture Colorized Effect
« on: June 14, 2019, 08:12:35 AM »
Over the last few years while working on writing my graphics programs including an ILBM Image Viewer and an Icon Editor in C# and now ShowPicture in C, I've had three long-term goals - to allow saving 24bit RGB directly to HAM6 and HAM8 which I demonstrated recently, to provide Icon Support for PNG Icons and IFF Icons (Amiga OS 3.5/3.9 GlowIcons), and a Colorize Effect to shift entire Color Groups using HSL Colorspace.

I'm working on finishing the Icon Menu Functions including Load Image, Save Image, and Save Icon which will work with PNG Icons at first, then IFF Icons later. The last of my major goals in graphics programming is Colorize. The three colored icon images are examples of what is possible with Colorize. It involves shifting one entire Color Group towards another on the HSL Color Wheel which is measured in degrees. Each Hue is rotated around the Color Wheel to the new location.

I'm currently working on Colorize as far as Converting RGB to HSL and HSL to RGB which are required for the functions to work correctly. I've also decided to use Relational Processing such as used in Computing HAM bytes across a scanline. The value of each HSL pixel is determined by comparison to other nearby pixels.

paolone

  • Member
  • ***
  • Posts: 151
  • Karma: +3/-0
Re: ShowPicture Colorized Effect
« Reply #1 on: June 14, 2019, 04:32:42 PM »
Great!

salvatore

  • Member
  • ***
  • Posts: 192
  • Karma: +2/-0
  • healt problem, In the Past Was a Little Musician
    • My Personal Web Page
Re: ShowPicture Colorized Effect
« Reply #2 on: June 15, 2019, 04:28:33 AM »
yes ;)
Icaros Desktop on Fujistu Esprimo Intel Core 2 Duo 3 Ghz

miker1264

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-1
Re: ShowPicture Colorized Effect
« Reply #3 on: Today at 12:19:55 AM »
Thanks! It has taken a few hundred hours of labor intensive programming to get this far. But it has been an exciting journey of discovery. I'm also writing an Instructions PDF to describe all the various Program Menus and Features like Paolone does with Icaros and another PDF called Programming ShowPicture which will illustrate the techniques used and how they came about. As soon as the PDF's are done and I have finished Icon support which is about 90% done, I will post the first version of ShowPicture for everyone.

I have decided that ShowPicture is NOT a paint program. Rather it's a Graphics Processing Program. We don't paint directly to pixels on screen. We manipulate all the pixels and transform them into something else. It involves a lot of Formulas, Specialized Algorithms, and Mathematics and some Color Theory mixed in.

Given the choice of doing things the easy way or a more difficult and more unconventional way that would yield superior results, I would choose the hard way! It's more rewarding in the end.

The many possibilities while using the Colorize Effect as with the colored icon images in the sample  are evident. Colorize can be a powerful tool. I could do it the easy way and just process one Color Group transformation at a time, or I could do it the hard way and allow multiple transformations. I'll do it the hard way. ;)

An image such as these samples can have one or multiple Color Groups. The original Drawer Icon has a single Blue Color Group. The hues are inthe Range of 210 to 240 degrees on the HSL Color Wheel. So, how would we process multiple Color Groups simultaneously, pushing our CPU's and GPU's to the max? I will scan the image and sample pixels using 12 predefined Color Buckets to determine Color Groups the display a Color Selector with up to 12 groups on top represented by colored Squares. The bottom 12 slots will be empty so the user can choose destination colors for each Color Group in the image. Then we could process 12 groups at a time. That's a lot of pixel operations! It should take a few seconds.

Doing things the hard way also applies to a Colorful About Box. I'll give you an idea of what I'm planning. Most programs and AROS libraries that use icons only look for one or two png images. ShowPicture has a special App Icon that has three png images. The third png is a 100x100 app image. I might use bit fields and some creative masking for special effects.

Happy Coding!

aha

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
Re: ShowPicture Colorized Effect
« Reply #4 on: Today at 09:28:18 AM »
@miker1264

Wow! Im looking forward to it. Thank you for all your efforts!

salvatore

  • Member
  • ***
  • Posts: 192
  • Karma: +2/-0
  • healt problem, In the Past Was a Little Musician
    • My Personal Web Page
Re: ShowPicture Colorized Effect
« Reply #5 on: Today at 09:47:09 AM »
you actually already exist zunepaint regarding the design (especially pixel art, with some additional feature) I think it will be updated over time, so better as you say to focus on something else, and better if innovative for the most demanding and experienced, the remaining programmers of the aros subsystem are doing a great job, then we have icaros, I make audio recordings with a small tool that records the tracks in raw, then you have to use a native program for 68k (in emulation with janus) for editing, I'm thinking of a gui for sox, we'll see later ;)

Translated with www.DeepL.com/Translator
Icaros Desktop on Fujistu Esprimo Intel Core 2 Duo 3 Ghz

salvatore

  • Member
  • ***
  • Posts: 192
  • Karma: +2/-0
  • healt problem, In the Past Was a Little Musician
    • My Personal Web Page
Re: ShowPicture Colorized Effect
« Reply #6 on: Today at 09:53:39 AM »
i see this
Icaros Desktop on Fujistu Esprimo Intel Core 2 Duo 3 Ghz