u***@public.gmane.org
2014-08-20 10:33:33 UTC
Help please if you can, how can I resolve this?
I have written a function that uses multiple basic shape elements, the purpose of which, is to create a hachure (or some other fill pattern). The hachure colour, width, spacing, rotation and offset may be set from the function arguments, and are independent of the stroke and/or fill state settings. So e.g. a rect() object can have state fill() and stroke() properties that are independent of the hachure.
What I would like to do, is to put the function in a library, or some other kind of external file. The problem that I seem to have is this: If I put a primitive e.g. rect(0, 0, 100, 100) in a library file and try to import the library I get an name error, an error message telling me the name 'rect' is not defined.
Do I need to import certain other resources e.g. other library files into my library, and if so, (and I do not presume it is so) which ones? Any help will be much appreciated.
Many thanks in hopeful anticipation.
-u
I have written a function that uses multiple basic shape elements, the purpose of which, is to create a hachure (or some other fill pattern). The hachure colour, width, spacing, rotation and offset may be set from the function arguments, and are independent of the stroke and/or fill state settings. So e.g. a rect() object can have state fill() and stroke() properties that are independent of the hachure.
What I would like to do, is to put the function in a library, or some other kind of external file. The problem that I seem to have is this: If I put a primitive e.g. rect(0, 0, 100, 100) in a library file and try to import the library I get an name error, an error message telling me the name 'rect' is not defined.
Do I need to import certain other resources e.g. other library files into my library, and if so, (and I do not presume it is so) which ones? Any help will be much appreciated.
Many thanks in hopeful anticipation.
-u