|
Post by Thijs on Aug 5, 2016 10:23:15 GMT
Hey there! I wondered why doesn't the draw library include any functions for drawing parallellograms.Parallellograms can manually be drawn too, using lines (it would still look like a silly parallellogram..) , but filling it with a color is another story. I'd appreciate it. It may be possible to make a parallellogram manually using a rectangle and two wedges, but a build-in function would work faster. draw.fillpara(xd1, y1, xd2, xu, y2, color)xd1 = left point undery1 = y-position underxd2 = right point underxu = left x-position upy2 = y-position upcolor = {r, g, b, opacity}
[xu]------------------------[##] • y2 \ \ \ color \ \ \ [xd1]--------------------[xd2] • y1 Rotating the parallellogram may be usefull too. Thx for reading Doeii
|
|
|
Post by Admin on Aug 7, 2016 12:06:30 GMT
Hey there! I wondered why doesn't the draw library include any functions for drawing parallellograms.Parallellograms can manually be drawn too, using lines (it would still look like a silly parallellogram..) , but filling it with a color is another story. I'd appreciate it. It may be possible to make a parallellogram manually using a rectangle and two wedges, but a build-in function would work faster. draw.fillpara(xd1, y1, xd2, xu, y2, color)xd1 = left point undery1 = y-position underxd2 = right point underxu = left x-position upy2 = y-position upcolor = {r, g, b, opacity}
[xu]------------------------[##] • y2 \ \ \ color \ \ \ [xd1]--------------------[xd2] • y1 Rotating the parallellogram may be usefull too. Thx for reading Doeii Why not draw two triangles?
|
|
|
Post by Thijs on Aug 7, 2016 14:06:13 GMT
Hey there! I wondered why doesn't the draw library include any functions for drawing parallellograms.Parallellograms can manually be drawn too, using lines (it would still look like a silly parallellogram..) , but filling it with a color is another story. I'd appreciate it. It may be possible to make a parallellogram manually using a rectangle and two wedges, but a build-in function would work faster. draw.fillpara(xd1, y1, xd2, xu, y2, color)xd1 = left point undery1 = y-position underxd2 = right point underxu = left x-position upy2 = y-position upcolor = {r, g, b, opacity}
[xu]------------------------[##] • y2 \ \ \ color \ \ \ [xd1]--------------------[xd2] • y1 Rotating the parallellogram may be usefull too. Thx for reading Doeii Why not draw two triangles? Mm.. Aha. Okay I'll keep that in mind. Thanks.
|
|