动态图形可视化库 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://www.codercto.com/soft/d/14382.html

任正非传

任正非传

孙力科 / 浙江人民出版社 / 2017-5-2 / 39.80

编辑推荐: 超权威、超丰富、超真实的任正非传记 亲述任正非跌宕起伏、传奇精彩的一生 ◆知名财经作家孙力科,历时十年,数十次深入华为,采访华为和任正非历程中各个关键人物,几度增删,创作成此书 ◆全书展现了任正非从出生至今70多年的人生画卷,从入伍到退役进国企,从艰难创业到开拓海外市场,囊括其人生道路上各个关键点,时间跨度之长,内容之丰富,前所未有 ◆迄今为止,任正非一生......一起来看看 《任正非传》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具