Là một công cụ xử lý ảnh, nosir/obelisk.js đã đạt 2.3k sao trên GitHub, ngôn ngữ JavaScript. Build pixel isometric graphics with HTML5 canvas
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
obelisk.js is a JavaScript library for building isometric pixel objects.
With the simple and flexible API provided, you can easily add isometric pixel elements like brick, cube, pyramid and slope in HTML5 canvas. Obelisk.js strictly follows pixel neat pattern: lines with 1:2 pixel dot arrangement, leading to an angle of 22.6 degrees.
Also you should know obelisk.js is not for vector isometric graphics drawing and rendering. Internally it does not use any canvas graphic drawing API, instead, it manipulates all the rendering in pixel level to obtain precise pixel arrangement. Just try it out to pixelate something. Have fun.
1.2.0 Release
The newest version is written by CommonJS style, which means you can easily use it in browserify project. See details here
Showcase
Origin:
Input Text Rendering: http://codepen.io/nosir/details/IxBJn
// create a canvas 2D point for pixel view world
var point = new obelisk.Point(200, 200);
// create view instance to nest everything
// canvas could be either DOM or jQuery element
var pixelView = new obelisk.PixelView(canvas, point);
// create cube dimension and color instance
var dimension = new obelisk.CubeDimension(80, 100, 120);
var gray = obelisk.ColorPattern.GRAY;
var color = new obelisk.CubeColor().getByHorizontalColor(gray);
// build cube with dimension and color instance
var cube = new obelisk.Cube(dimension, color, true);
// render cube primitive into view
pixelView.renderObject(cube);
For more details, check the tutorial part 1: To build the first cube, or try the code yourself
Also you can use it in your Node.js canvas project
As node.js canvas dependency can be tricky to install (binary dependency on Cairo) we are not adding it as a project dependency. You will need to add the canvas dependency explicitly on your project:
$ npm install canvas
$ npm install obelisk.js
In your JavaScript
// load Node Canvas dependency
var Canvas = require('canvas');
// load obelisk.js module
// here we need the Canvas as a module parameter
var obelisk = require('obelisk.js')(Canvas);
// create a Node Canvas instance
var canvas = new Canvas(600,450);
// Use obelisk the same way you will use it in the browser ...
// Save canvas to a file
canvas.createPNGStream().pipe(fs.createWriteStream('./figure.png'));
For more details, check the Node.js Canvas example.
Get in Touch
Build any cool stuff? Please feel free to add it here: User Contributed Showcase
Bugs & Suggestions: open an issue
Twitter: @rison
Changelog
See details here: release notes.
References
Pixel art is a form of digital art, where images are edited and displayed on the pixel level. The isometric projection is commonly seen in games to provide a 3D view without using any real 3D processing.
nosir/obelisk.js thuộc nhóm Image Tools trên TopGit, cùng 4 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về nosir/obelisk.js ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/nosir/obelisk.js là nguồn chính thức.
nosir/obelisk.js có bao nhiêu sao?
nosir/obelisk.js có 2.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/nosir/obelisk.js. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
nosir/obelisk.js có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho nosir/obelisk.js. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
nosir/obelisk.js có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho nosir/obelisk.js. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
nosir/obelisk.js là gì?
nosir/obelisk.js (nosir/obelisk.js) là dự án JavaScript trên GitHub. Theo mô tả gốc: Build pixel isometric graphics with HTML5 canvas
nosir/obelisk.js so với các dự án Image Tools khác thế nào?
nosir/obelisk.js được TopGit xếp vào nhóm Image Tools, với 2.3k sao GitHub và viết bằng JavaScript. Xem trang chủ đề Image Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc obelisk.js có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về obelisk.js.