Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » GeoFun -- Plot Spirograph
Re: GeoFun -- Plot Spirograph [message #43771 is a reply to message #43757] Wed, 08 October 2014 17:01 Go to previous messageGo to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Manfred,

As per "SVG" specifications number is type float. Curves smoothness will be hampered if I change number to 'int' when image is scaled.

Thank you for your suggestions. Will check in Linux. If problem is there then will change the number format to 'int' for Linux compilation.

interface SVGNumber {
  attribute float value setraises(DOMException);
};

SVGNumber

InkScape opens the present saved image. Full image shown.

I checked in windows with Firefox, Chrome and IE all are showing the image. It is 1/4 ( positive quadrant). By default internet browsers expect SVG image with all positive values. My calculated path is in all 4 quadrants.

I have made required change to shift image to have all positive values in exported image. Full image is visible in Windows browsers.

Thanks for your suggestion Klugier
Quote:

A small note on your code, you should never use following statement in your header file:

using namespace Upp;

Made changes suggested by you. It includes origin shift also.
  • Attachment: GeoFun.7z
    (Size: 339.79KB, Downloaded 245 times)


Warm Regards

Deepak

[Updated on: Wed, 08 October 2014 17:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UppCad (or UltimateCad) is borning -- Updated January 2013 -- see last post
Next Topic: Alligator - Visual Studio PDB file analyzer
Goto Forum:
  


Current Time: Thu Apr 18 15:13:50 CEST 2024

Total time taken to generate the page: 0.02325 seconds