Hi Harvey! and welcome to SVG developers! > my name is harvey rayner and i became involved with svg through the > svg logo contest. my background is in digital arts and graphic design. > i would not say i have the skills and knowledge to contribute to the > nuts and bolts of svg development as my own coding experience is very
we also welcome beginners and if you are coding with Javascript you aren't a beginner any more! > limited. I am more interested in finding new and, dare i say, cool > applications of this evolving technology. yes, lots of interesting applications. > http://www.root2art.co.uk/svg_color_selector/index.php looks nice > experienced hand, but it does seem to work in ie7 ff2 and opera9. and also in Safari Webkit (next version), though it complains about a "Null value" in Line 62. But thats not necessarily your fault. > a bit sticky in ff and, for some reason i can not identify, the svg > sometimes fails to load in opera. when the page is refreshed it loads. I experience problems on Opera Mac as well. The SVG loads just fine, but the PNGs (the color ramp pngs) don't load, or only sometimes. > at the moment the 'cross hairs' in the color selector takes its > reference from the top of the page. if the page is scrolled the 'cross > hairs' do not coincide with the cursor. so, as I understand the code, the color picker is implemented in HTML and ECMAScript and not in SVG and ECMAScript. The only part where SVG is involved, is the pattern where the chosen colors are applied to the SVG pattern. > opening the editor in its own window would solve this problem, but i > want to add further functionality below, so scrolling would be preferable. yes, you'd need to take the scroll offset into account for your cursor position calculation or change the colorpicker to SVG. An alternative SVG colorpicker is available at http://www.carto.net/ papers/svg/gui/colourPicker/index.svg with http://www.carto.net/ papers/svg/gui/colourPicker/ as a documentation. > the next problem to tackle is going to be exporting edited patterns as > pngs to my server. i'd like users to be able to create seamless > background tiles from their chosen colors. i suspect this will involve > exporting to png and then cropping a few px off the edges. the svg > patterns designs can be oversized by the same amount. i figure that if > this is not done then a thin border will appear around the tile > produced when the design edge is anti-aliased with the default > background color. this is the procedure i follow to create seamless can't say, you'd have to experiment. > the svg to png export functionality is the main issue i'd like to ask > the group for guidance with. what's a good place to start? I would have a look at the Batik rasterizer. It can read in SVG and convert it to PNG/JPEG/PDF/TIF/BMP - it can also process onload scripts before rasterizing. See infos at http:// xmlgraphics.apache.org/batik/tools/rasterizer.html - there are several methods to pass the color values to Batik: * serialize the current state of the SVG DOM to Batik * or use a static SVG and encode the color values in the URL. Later an onload script processes the URL values * uses a php or other serverside script to process the color information and compile the SVG file from the various parameters There might be other methods. Good luck with your project! Andreas ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

