Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[draw] line width

 [1/5] from: maximo:meteorstudios at: 23-Dec-2003 12:52


Hello fellow rebels, a quick one for those of you who have in-depth knowledge of the draw dialect. I'm doing a functional shematic viewer in rebol, connecting graphical and floating nodes and all. Its all working like a charm, but I was wondering if its possible to change the line width in draw dialect setup. I haven't noticed in the docs... 1 pixel is a little thin on 1600x1200 or higher resolution setups... thanks in advance -MAx --- You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun.

 [2/5] from: greggirwin::mindspring::com at: 23-Dec-2003 11:33


Hi Max, MOA> Its all working like a charm, but I was wondering if its possible MOA> to change the line width in draw dialect setup. I haven't MOA> noticed in the docs... Nope, but I think Anton did a thick-line demo a while back...Anton? -- Gregg

 [3/5] from: atruter:labyrinth:au at: 24-Dec-2003 10:40


Hi Max,
> Its all working like a charm, but I was wondering if its possible to > change the line width in draw dialect setup. I haven't noticed in the > docs...
Unfortunately no. One trick I use for [small] circles is: c: make face/font [size: 144 name: "Wingdings"] view layout [ box 200x200 effect [ draw [font c text 0x0 form to-char 161] ] ] For lines I just draw multiple lines 1 pixel apart (or use a flood-filled polygon for realy thick lines). None of these are particuary elegant, but still simpler than having to directly poke pixels into a screen image. Note that for the VID 1.3 project Romano has created request#134 with the following text, "add a line thickness parameter to Draw effects like line polygon circle". This can't come soon enough for me! ;) Regards, Ashley

 [4/5] from: maximo:meteorstudios at: 23-Dec-2003 19:44


polygon idea is a good one. :-) doh! why didn't I thing of that! thanks for people who suggested stuff!! -- about my project: -- Its taken me 3 days to implement a gfx schematic view in rebol/view that took me several weeks to do with python using trolltech's Qt canvas manager. of course the fact that I know rebol/view and vid like the back of my hand helps a lot, but when trying to convince my superiors, they always stuck with the fact that our pipeline is in python so should remain in python. Now that deadlines are approaching, I was able to suggest (again) rebol and they decided to give me my chance and I am now proving to management just how EASY it is for me to solve problems in rebol (and save them $$$ ;-). not that QT is bad (it is VASTLY) faster than rebol/VIEW, and is a much more complete and robust vector image class... But still the fact that rebol's code is more universal, make EVERYTHING more simple. So the end code is less than have the size, does much more and even looks quite nicer too, than's in qt equivalent. On top of it, I'll be able to do a semi real-time compositing engine right in rebol (using the limited transform tools in view), and my artists will be all the more happy... I really would like for view to be rebuilt using Open GL though. it would go 100 times faster (no need to specifically add 3d graphics)... just re-implementing the 2d with openGL optimisations means my hardware would actualy be doing something and then I could even use ANTI-ALIASING (oh my gosh)... -MAx --- You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun.

 [5/5] from: antonr:iinet:au at: 24-Dec-2003 12:27


Yep, fat-line.r do http://www.lexicon.net/anton/rebol/gui/fat-line.r Should really be called "demo-fat-line.r", but anyway.. Anton.