Anti-Aliased 2px thick line try-out >>
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 13.08.2025 - 11:32:03
Pages:  1  

Anti-Aliased 2px thick line try-out

Advertising


MessageAuthor

Hi, I've been trying to use LICE to draw thicker anti-aliased lines with no success. The 1px default LICE_line is just to thin for most uses, a 2px is about right for my needs so I started to build something myself. It's a rough proof of concept that uses a trick to make the lines look anti-aliased. If you have any ideas for optimizing or improving this please let me know. (especially the divide in main loop) There are some restrictions: - No way to set the thickness, lines are 2px only. - Because of the anti-aliased pixels, the drawing area is reduced by 1 pixel on each side - Line ends are not anti-aliased Some rough and un-optimized (but working ;-) code: Code:

------------------------------

jb325

user forum




Statistics:
Messages: 544
Registration: 02.05.2002
01.01.23 - 05:23:55
Message # 1
RE: Anti-Aliased 2px thick line try-out

I am also working on this, and this seams to be very difficult to do... Drawing straight tick line is not that difficult actually, abut curved tick lines are very difficult to do. One simple trick for tick lines would be to draw bunch of circles on every pixel. This will work OK for smaller sizes, but it will give you round endings... Do you know that there is already anti aliased line built in LICE? You can call it like this from your custom class... Code:

------------------------------

phily

user forum




Statistics:
Messages: 61
Registration: 03.06.2002
01.01.23 - 05:27:50
Message # 2
RE: Anti-Aliased 2px thick line try-out

I just need to find coordinates of 3rd point in isosceles triangle (I know all sides length and I know coordinates for other 2 points). Simple as that. Here is simple code that I wrote, but it doesn't work properly... Code:

------------------------------
1996 Camaro Z28 M6 / SLP Exhaust Making mullets cool since the 60s My Z: http://www.cardomain.com/ride/2420526/1

94E36-325is

user forum




Statistics:
Messages: 852
Registration: 09.13.2002
01.01.23 - 05:32:57
Message # 3
RE: Anti-Aliased 2px thick line try-out

Thanks, can you tell me what is ϕ in this equation? x3=AB∗Cos(ϕ)+x1 y3=AB∗Sin(ϕ)+y1

------------------------------

jmig

user forum




Statistics:
Messages: 291
Registration: 10.14.2003
01.01.23 - 05:43:11
Message # 4
RE: Anti-Aliased 2px thick line try-out

OK, I have solved this(not in your way). Now I just need to make algorithm that will fill the polygon...

------------------------------

Brian99R1

user forum




Statistics:
Messages: 451
Registration: 05.02.2003
01.01.23 - 05:48:00
Message # 5
RE: Anti-Aliased 2px thick line try-out

Found a solution yet? 

------------------------------

MP525i

user forum




Statistics:
Messages: 4,494
Registration: 05.24.2002
01.01.23 - 05:55:14
Message # 6
RE: Anti-Aliased 2px thick line try-out

Hi, is there some progress on drawing curved lines thicker than 1px ?

------------------------------
95' Katana600FSX 97' M3/4 Alpine

IM3F4U

user forum




Statistics:
Messages: 14
Registration: 07.19.2002
01.01.23 - 06:03:49
Message # 7
RE: Anti-Aliased 2px thick line try-out
PT mpowerd demo : Previous topicNext topic: Multiple Control Surfaces? Mackie MCU AND Tascam FW 1082 at the same time?
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants