1. SVG Overview:
SVG (Scalable Vector Graphics, Scalable Vector Graphics) is W
3c
An open standard text-style vector graphic description language, which is an XML-based image format specially designed for the network. SVG is a language that uses XML to describe two-dimensional graphics. SVG graphics can be dynam
(such as trim) and support the latest features.
Lazy line painter
The laid back Range painter is a jQuery plug-in that is often used as a drawing atlas, a bit like Vivus. Usually you'll spit it out and it's just such a special feature. Let me explain, if you are using illustrator or Inkscape SVG images, and the SVG image does not change any color, only the changes in the trajectory, you can use it.
good example of drawing a PlayStation set of animations.
Progressbar.js
Progressbar.js is a lovely and easily accepted growth graph used to draw cartoon svg lines. With it, various shapes can be used as growth curves. It integrates some useful shapes such as range,circle and block, and you can even develop a growth graph using illustrator or other
much smaller in size (compared to Rapel) to implement the same features (such as trim) and support the latest features.
Lazy Line Painter
Laid back Range Painter is a jQuery plug-in that is usually used to draw an Gallery, a bit like Vivus. Generally, you will vomit that it only has such a special function. Let me explain, if you are using an SVG image made by Illustrator or Inkscape, and the SVG image do
Join us today to learn about a lightweight class library that implements the SVG path stroke drawing and animation, we introduce the segment from easy to use, detailed usage, resources and cases, and source code interpretation.1. Easy to get started
Add segment to the HTML aspect to define path.
JS uses path to instantiate a segment, then you can use the segment draw method.
var MyPath = document.getEle
Join us today to learn about a lightweight class library that implements the SVG path stroke drawing and animation, we introduce the segment from easy to use, detailed usage, resources and cases, and source code interpretation.1. Easy to get startedAdd segment to the HTML aspect to define path.script src="/dist/segment.min.js">script>svg> path id="my-path" ...
Raphael is a JavaScript library for drawing vector graphics in Web pages, using the SVG recommendation Standard and VML as the basis for creating graphics, and by JavaScript manipulating the DOM to easily create a variety of diagrams, such as complex histograms, pie charts, graphs, etc. You can also draw shapes of any shape, so you can perform complex operations such as cropping and rotating a chart or imag
Svg.js is a lightweight JS plugin library that manipulates and makes SVG animations. Svg.js can generate SVG graphics, images, text, paths, and so on. Svg.js can also be used to make SVG animations and interactive drag-and-drop effects.Svg.js does not rely on external plug-in libraries such as jquery, which follow the
Graph Visualization Library in JavaScriptI ' ve just put together what's be looking for:http://www.graphdracula.netIt ' s JavaScript with directed graph layouting, SVG and can even drag the nodes around. Still needs some tweaking, but is totally usable. You create nodes and edges easily with JavaScript code like this:v
GRaphaelIs designed to help developers draw a variety of exquisite charts on the web page.JavascriptLibrary, based on powerfulRaphaelVector Graphics Library. You only need to write several lines of simple code to create exquisite bar charts, pie charts, point charts, and graphs.
GRaphaelUse the SVG W3C recommendation standard andVMLAs the basis for creating images, it is a cross-browser vector graphics
GRaphaelIs designed to help developers draw a variety of exquisite charts on the web page.JavascriptLibrary, based on powerfulRaphaelVector Graphics Library. You only need to write several lines of simple code to create exquisite bar charts, pie charts, point charts, and graphs.
GRaphaelUse the SVG W3C recommendation standard andVMLAs the basis for creating images, it is a cross-browser vector graphics
BoostGraph library uses the concept of generics to completely compile various algorithms in the graph. For example, wide search, deep search, and shortest path
1. Create a graph
1.1Graph Representation
An image can be represented by an adjacent matrix and an adjacent table. In BGL, adjacency_list and adjacency_matrix are used for representation. adjacency_list us
indicates the path to which the neighbor target graph is connected from the drawing itself, and the to direction represents the path to which the graphic is connected from the neighbor graphic.
Figure 3.3-1 from direction
Figure 3.3-2 to direction
Table 3.3-3 specification for power equipment Direction 3.4 Definition: source
Source is a branch link formed mainly by a series of power equipment and isolation gates, source is only a virtual branch li
requires the support of GD library. If the user wants the Jpgraph class library to be valid only for the current site, simply copy all the files in the SRC folder under the Jpgraph compressed package to the same directory as the Web site, and invoke the specified file under the SRC folder when used. These will be explained in detail later in this section.
Configuration of the Jpgraph
Jpgraph provides a f
, $ img2, 5, 5, $ im_W, $ im_H); // merge two images$ Images = mrand4B (). time (). '.jpg '; // New image name$ Path = $ _ SERVER ['document _ root']. '/static/downloadpic/'. $ images; // Image pathImagejpeg ($ im, $ path); // generate a new graph and place it in the specified path.Imagedestroy ($ im); // release memoryReturn $ images; // The name of the image to be saved to the database. Note that the phpgd
, and so on. Ha can easily edit the image, trying to deal with thumbnails and add watermarks for the image, and so on, with powerful image processing capabilities.
First of all, let's start with the GD library, and draw a simple graph with some steps:
1, the first is to create a canvas, where we use the Imagecreatetruecolor function, you can also use imagecreate, the difference is that the former created
image:
Let's look at it again:
The coordinates of the drawn points are actually (201,301 ).
Circle:
The center of the circle is (200,200), plus two pixels of the circular edge. The length of the circle is 101, and the width is 101. The ellipse is similar.
Let's take a look at the performance of the GD function when we draw a line:
The coordinates of the first vertex of a line segment are actually (301,301), and the coordinates of the last vertex of the line segment are (401,401 ). Do
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.