On 9/19/23 23:33, Csaba Láng wrote:
By the way, the same issue with the circle object. [width $1( is just ignored with the draw line message.
so i guess that when you wrote "does not understand the [width $1( message" you meant to say that it just ignores it (as opposed to "the object complains with an error message "rectangle: no method for 'width'"
the "width" property just wraps the 'glLineWidth' property which is somewhat dependent on the openGL implementation.
quoting from the standard (https://registry.khronos.org/OpenGL-Refpages/gl4/html/glLineWidth.xhtml):
Only width 1 is guaranteed to be supported; others depend on the
implementation.
in practice i've never encountered a maximum width below 7, but probably things are slightly different with WSL.
you might try something like https://stackoverflow.com/questions/3484260/, but apparently this is rather complicated.
gmdsar IOhannes