svg:使用Rust创建svg的简单库

时间:2021-05-02 04:00:53
【文件属性】:
文件名称:svg:使用Rust创建svg的简单库
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-02 04:00:53
Rust svg libsvg允许您使用Rust创建svg图形。 ###来自SVG规范的简单示例 extern crate svg; use std :: old_io :: {BufferedWriter, File, Truncate, ReadWrite}; use svg :: SVG; fn main () { // Create the SVG object let mut image = SVG :: new ( 12 , 4 ); image. view_box ( 0 , 0 , 1200 , 400 ); // Add a little description image. desc ( "Example circle01 - circle filled with red and stroked with blue" ); //
【文件预览】:
svg-master
----.gitignore(40B)
----Makefile(1KB)
----src()
--------bin()
--------text.rs(2KB)
--------svg.rs(10KB)
--------transform.rs(3KB)
--------common.rs(2KB)
--------path.rs(2KB)
--------shapes.rs(6KB)
----.travis.yml(583B)
----LICENSE(1KB)
----Cargo.toml(153B)
----README.md(1KB)

网友评论