hi everyone
the first time i'm programming with the love engine!
there is only one thing bothering me when i use the draw functions..
if i draw e.g. a dot (1 pixel) or a rectangle (outline, not filled) the color and thickness of the
lines or dots is wrong.
the dots are very dark, not the full color they used to be and to big.
if i draw a square filled one pixel big then the size and color is perfect, just a pixel like i want but a dot is thicker and darker...
can someone help me with this small problem?
Thanks in advance,
TheAutomator
color problem with dots and lines
Re: color problem with dots and lines
Hi and welcome to the forum.
If the line width is very thin, then the color might get mixed with the background color. You can try setting the line style to "rough". See setLineStyle.
If that does not help, then please post a .love file of your code. That will make it much easier for us to help you.
If the line width is very thin, then the color might get mixed with the background color. You can try setting the line style to "rough". See setLineStyle.
If that does not help, then please post a .love file of your code. That will make it much easier for us to help you.
Check out my blog on gamedev
-
- Prole
- Posts: 12
- Joined: Wed Jun 04, 2014 9:25 am
Re: color problem with dots and lines
take a look at the file pleas
tested "rough" and "smooth" but nothing helps..
drawing just one pixel on the screen in its full color is not possible with "point" I guess?
tested "rough" and "smooth" but nothing helps..
drawing just one pixel on the screen in its full color is not possible with "point" I guess?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: color problem with dots and lines
Add (or subtract) 0.5 to all the coordinates. The problem is a miscommunication between different parts of the underlying system — for some (0, 0) means the upper-left corner of the pixel in the upper left corner, for some it means the middle of the pixel in the upper left corner. Moving dots and lines by 0.5 fixes that problem.
Help us help you: attach a .love.
-
- Prole
- Posts: 12
- Joined: Wed Jun 04, 2014 9:25 am
Re: color problem with dots and lines
Thank you for the help!
-
- Prole
- Posts: 12
- Joined: Wed Jun 04, 2014 9:25 am
Re: color problem with dots and lines
Ok, thanks for the help!
(I already replied to say thank you but for some reason that post is not appearing..)
(I already replied to say thank you but for some reason that post is not appearing..)
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 2 guests