Re: Thick lines

new topic     » goto parent     » topic index » view thread      » older message » newer message

PatRat wrote:

> Hello, I'm trying yo write a drawing program at the moment and a question:
> I have bean using draw_line() but that can only draw lines 1 pixel thick
> and I nead verible line thicknes, any one know how to do this?

Parameters:
        points: sequence containing the points (same as when you use draw_line)
        color: color of the line
        thick: thickness of the line. I think you can use negative values to,
so
                you can choose the side to be thickenned.

Example: thick_line({{100,100},{200,200},{250,150}},BLUE,10)
   Draws a 10 pixel thick line connecting the specified points.

----CUT----
function thick_line(sequence points, integer color, integer thick)
    for loop = 1 to length(points)-1 do
        for loop2 = 0 to thick do

        end for
    end for
end function
----CUT----

Check it, I haven't test it. Hope it works ;)

--
Regards,
        Daniel Berstein
        architek at geocities.com
        http://www.geocities.com/SiliconValley/Heights/9316

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu