动态图形可视化库 fourd.js

码农软件 · 软件分类 · 3D图形处理库 · 2019-09-11 18:27:13

软件介绍

fourd.js 是一个用在浏览器上的动态图形可视化库。稍微调整一下,你就可以用它做出一些几何图形集合,此库已经在 Chrome、Firefox、IE11 上测试运行,有传言说,通过切换 CanvasRenderer,此库甚至可以在树莓派上运行。

示例代码:

var fourd = new FourD(); // instantiation
fourd.init('#selector', {width: 600, height: 350}); // initialization
var vertex_options = {
  width: 5, // pixels
  height: 5,
  depth: 5,
  color: 0x000000 // hex color
};
// or:
var vertex_options = {
  width: 5,
  height: 5,
  depth: 5,
  texture: 'path_to,png'
}
// or:
// leave out vertex options altogether.
// default values will be used.
var vertex1 = fourd.graph.add_vertex(vertex_options); // add a vertex
var vertex2 = fourd.graph.add_vertex(vertex_options); // add another vertex
var edge_options = {}; // currently not defined, but this is how you would pass them.
var edge = fourd.graph.add_edge(vertex1, vertex2, edge_options);
fourd.graph.remove_edge(edge); // this is why you keep those variables
fourd.graph.remove_vertex(vertex1);
fourd.graph.remove_vertex(vertex2);

本文地址:https://codercto.com/soft/d/14382.html

iOS编程实战

iOS编程实战

[美] Rob Napier、[美] Mugunth Kumar / 美团移动 / 人民邮电出版社 / 2014-9 / 79.00元

本书深入介绍iOS 7新特性和新功能,涵盖iOS 7大部分新增特性,包括新的后台操作、Core Bluetooth、UIKit动力学以及TextKit。另外还介绍了如何处理新的扁平化UI,并新增了一章你可能不知道的“小技巧”。如果读者熟练掌握C和C++,读完本书即可创建性能优异的iPhone、iPad和iPod touch应用。 本书主要内容包括:  iOS 7新特性和新功能概览; ......一起来看看 《iOS编程实战》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

MD5 加密
MD5 加密

MD5 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具