Recent

Author Topic: LazPaint (alpha-blending, antialiasing, filters)  (Read 502068 times)

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #900 on: March 07, 2020, 05:37:54 pm »
That would be a unique feature then.

My neurons are trying to figure out how to make it. I think I know how to make the pen. For know it is computed on one closed loop, a polygon. Both left side and right side are done at the same time. With connections between points, they need to be done separately. For example the outer side of the shape can go around in one loop, but the inner side can be two different loops.

For the filling part, I suppose it can be deduced from the loops, but it is not clear to me how to know which loop to fill. Probably the longest loop is the outer loop and must not be filled while the smaller loops must be, but I wonder if there are exceptions. Also if the connection between two points goes crosses over the main loop, then some surface is theoretically filled by two inner loops at the same time.
Conscience is the debugger of the mind

c-sanchez

  • Jr. Member
  • **
  • Posts: 54
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #901 on: March 08, 2020, 03:14:41 am »
I must admit that at first I was a little confused about a few things with the new version
as how close the shape, however I think have more sense now :)
or about how works the gradient now, Indeed I thought for a moment that the tool itself had been removed, for only the option of making gradients by means of shapes or lines, but then I saw that it was grouped with the eraser heh ;P
Filling in the shapes with gradients is really cool, though I taked a little practice to understand how various things work :)

Finally the colors and layers are well docked haha

I think are many things to comment, but is really good this new version :D

Btw, this is a problem from before, the selection don't works in the corners or close from (selection area is limited as 70% from center?)
https://i.ibb.co/r540jnq/lazpaint-selections-Limits.gif

c-sanchez

  • Jr. Member
  • **
  • Posts: 54
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #902 on: March 08, 2020, 03:55:14 am »
Is possible to have the ability to export/save in vectorial image format? as SVG.
btw, this svg image is not opened properly
https://upload.wikimedia.org/wikipedia/commons/3/30/Vector-based_example.svg

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #903 on: March 08, 2020, 11:06:11 am »
I must admit that at first I was a little confused about a few things with the new version
as how close the shape, however I think have more sense now :)
or about how works the gradient now, Indeed I thought for a moment that the tool itself had been removed, for only the option of making gradients by means of shapes or lines, but then I saw that it was grouped with the eraser heh ;P
Filling in the shapes with gradients is really cool, though I taked a little practice to understand how various things work :)
Yeah there are some changes though hopefully for the better.

Quote
Finally the colors and layers are well docked haha
:D Indeed

Quote
I think are many things to comment, but is really good this new version :D
Thanx

Quote
Btw, this is a problem from before, the selection don't works in the corners or close from (selection area is limited as 70% from center?)
https://i.ibb.co/r540jnq/lazpaint-selections-Limits.gif
Yeah because when using the corner to resize, it is better to have the mouse on the corner. Otherwise I think that when you rotate the shape (using right-click) than can be a bit confusing.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #904 on: March 08, 2020, 11:07:48 am »
Is possible to have the ability to export/save in vectorial image format? as SVG.
btw, this svg image is not opened properly
https://upload.wikimedia.org/wikipedia/commons/3/30/Vector-based_example.svg
That's a possible improvement. Though if you have raster stuff in there, the SVG file could get very large.
Conscience is the debugger of the mind

c-sanchez

  • Jr. Member
  • **
  • Posts: 54
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #905 on: March 08, 2020, 06:26:32 pm »
That's a possible improvement. Though if you have raster stuff in there, the SVG file could get very large.
I understand, however it would be great.
for now I play very little with raster stuff when I do "my drawings" :P
---
Some days ago while playing Hollow Knight made me want to remake an image...

First, make the shapes and fill them
https://i.ibb.co/H7jXVz9/hk-normal.png

try the new gradient fill in the "flower"
https://i.ibb.co/gSyKWQJ/hk-gradient1.jpg

Redid the gradient in flower, some of gradient for the character too, why not? :P
https://i.ibb.co/b1P3GqK/hk-gradient2.jpg

Gradient for lines in flower, although I like, I'm not sure
https://i.ibb.co/HTQwVnd/hk-gradient3.png

Ok, I thinned out the lines
https://i.ibb.co/YdKMVtY/hk-gradient4.png

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #906 on: March 08, 2020, 06:50:25 pm »
Nice drawing.  :)
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 882
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #907 on: March 12, 2020, 07:42:38 am »
In the debug versions there are "Scripts". When I try to run I get "You have Python version..., but you need."
IMHO, It would be better if the msgbox contained a hyperlink to a python download site, especially for those who have no idea what Python is.

Лазар 2,0,6;W7 64bit or XP 32bit;FPC3,2,0;rev 62129

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #908 on: March 12, 2020, 07:11:54 pm »
That's a fair point.

I've added a Download button when showing the error message for Python.
Conscience is the debugger of the mind

c-sanchez

  • Jr. Member
  • **
  • Posts: 54
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #909 on: March 15, 2020, 09:34:12 pm »
Hi! I'm back with another short message :D (sorry but is not ;P)

---
Ummm, about python scripts I will personally avoid it, I don't want install python in my system :P
However I wonder, is not possible make this as an DLL, or embbed in some way? without overload LazPaint ofcourse.

By example Madedit-Mod have Python as Macro language for automation(Run/Rec/Playback, local script list) and works ok.
https://github.com/LiMinggang/madedit-mod
The win32 binary which I have here, are just 6,74mb :P

Python 3.8.2 is 41mb installed

Can be nice to have scripts support without need of install the whole python, I know in almost Linux system is included by default, but not in Windows :P

---

I recently noticed the colors window have hexadecimal notation too haha, also using with the palette panel is really comfortable, I didn't bother to try both options before, but are really good :)
By other side I taked note of some things

Is not possible change the secondary color with the Colors window, ie, we need first change the main color and switch to secondary, could be nice if we can change both colors directly, as with left and right click for each one, as in the palete bar.
Is not possible change the Grandients colors with Colors window or the palete bar.
if I'm not wrong I guess you will improve this along with the "Gradient with more colors" issue anyway.
Although having the two colors of gradient in the main bar (preview) is functional, I think is not very comfortable.

---

If is not a big trouble can be nice if we can resize colors windows and layers (horizontally) when are docked

---

I recently added some small details to a image for a friend, the original image was made in Adobe Illustrator by someone else, but just for fun and test the Gradient fill and Opened Curve tools I recreated the image in LazPaint.
Original image https://i.ibb.co/WK4w1ky/orignalimage.png
Recreated image https://i.ibb.co/9Nh6bmH/recreatedimage.png

I think is interesting view how something was made in heavy professional software as Adobe Illustrator and how can be in LazPaint :)

But ok, anyway Illustradot is probably a very used desing software, so can be nice have the option Import their file format at least.
By example to open a image made in illustrator with Gimp we need first open in Inscape and export to some other format as SVG and open the with Gimp.
Although I readed the Inscape support for that format is limited, so maybe is complicated? :P

---

Well, I think is all for now.
For now :P

c-sanchez

  • Jr. Member
  • **
  • Posts: 54
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #910 on: March 19, 2020, 06:36:00 pm »
Please add a option to resize a layer individually, I know we can make this with the tool in layers, but sometimes we need resize a layer with some specific value and make this by hand can be a bit complicated.
I think something as a selector in the resize window to select all or "x layer" can be enough :P

I think in something as a selector in the resize window to select "all layers" or "x layer"

Add button to zoom 1:1, I guess with the asteric * in numeric keyboard
Other to zoom to fit in window? the divide in numeric keyboard? :P
The zoom to fit in the window, I think can be nice if also centers the image too

c-sanchez

  • Jr. Member
  • **
  • Posts: 54
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #911 on: March 28, 2020, 04:56:49 pm »
I think the Darken/Lighten tools need to be improved a bit
See how the Darken/Lighten tool is in LazPaint and Phoxo
lazpaint https://i.ibb.co/s3DWkhd/lazpaint-lighten-darken-tool.gif
phoxo https://i.ibb.co/rMy0zpD/phoxo-lighten-darken-tool.gif

lazpaint https://i.ibb.co/jJHwWDD/lp-demo1.gif
phoxo https://i.ibb.co/vXCYGMr/px-demo1.gif

I guess the effect should only be passed through the same areas until you click again
« Last Edit: March 28, 2020, 05:01:52 pm by c-sanchez »

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #912 on: April 01, 2020, 11:33:00 am »
Please add a option to resize a layer individually, I know we can make this with the tool in layers, but sometimes we need resize a layer with some specific value and make this by hand can be a bit complicated.
I think something as a selector in the resize window to select all or "x layer" can be enough :
That is a bit like what you are asking for shapes, so maybe I will make it the same way like editing the status bar.

Quote
Add button to zoom 1:1, I guess with the asteric * in numeric keyboard
Other to zoom to fit in window? the divide in numeric keyboard? :P
The zoom to fit in the window, I think can be nice if also centers the image too
Oh you're talking about adding a shortcut key. Ok. Good idea.
https://github.com/bgrabitmap/lazpaint/issues/133
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3307
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #913 on: April 03, 2020, 02:49:48 pm »
New test version of LazPaint 7.0.9 beta  :)
https://github.com/bgrabitmap/lazpaint/releases

Hopefully this version will have no more bugs.  :-[

  * interface: less flickering during action progress
  * interface: minor scaling improvements
  * interface: ensure toolwindows in front when restoring app
  * interface: dark theme for status bar
  * interface: add Donate tool button
  * interface: add Python download button if missing
  * interface: separate color for background and outline
  * interface: don't undock windows when going fullscreen
  * interface: fix remember save file extension
  * translation: added Latvian
  * translation: completed Kabyle and Bulgarian
  * tool: fix updating transparent colors
  * tool: fix release of middle mouse button
  * tool: optimize layer transform
  * tool: added font aliasing option
  * tool: replace layer by gradient if it is opaque
  * tool: floodfill using vector if possible
  * tool: fix gradient undo/redo
  * tool: multiselection of shapes
  * tool: fix text editor handling of keys
  * script: sort in menus
  * script: added inner shadow/light
  * script: added version function
Conscience is the debugger of the mind

jex

  • New Member
  • *
  • Posts: 23
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #914 on: April 03, 2020, 04:42:23 pm »
Amazing work!
I have a noob question tho, I downloaded the code but failed to understand exactly how do you run python scripts from lazarus?

 

TinyPortal © 2005-2018