rasterjs:raster.js是用于基于像素的2d演示的图形库-源码

上传者: 42131890 | 上传时间: 2021-03-31 10:06:42 | 文件大小: 78KB | 文件类型: ZIP
Raster.js raster.js是一个用于javascript的图形库,旨在用于像素艺术,2d演示效果和创意编码。 它旨在用作原型设计,实验和了解旧式图形工作原理的工具。 它提供了精确的像素控制,并在多个JavaScript环境和渲染上下文之间具有可移植性。 用法示例 const ra = require('raster.js'); ra.setSize(100, 100); ra.fillBackground(0x21); ra.setColor(0x15); ra.drawSquare({x: 15, y: 22, size: 40}); ra.setColor(0x25); ra.fillSquare({x: 16, y: 23, size: 38}); ra.show(); 安装 去做 建筑 克隆此仓库,然后将其放入cd 。 对于在node.js中运行: npm in

文件下载

资源详情

[{"title":"( 70 个子文件 78KB ) rasterjs:raster.js是用于基于像素的2d演示的图形库-源码","children":[{"title":"rasterjs-main","children":[{"title":"binding.gyp <span style='color:#111;'> 813B </span>","children":null,"spread":false},{"title":"views","children":[{"title":"pages","children":[{"title":"render.ejs <span style='color:#111;'> 290B </span>","children":null,"spread":false},{"title":"index.ejs <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"webpack.config.js <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"compile.js <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"image_loader.js <span style='color:#111;'> 795B </span>","children":null,"spread":false},{"title":"canvas_methods.js <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"runner.js <span style='color:#111;'> 10.49KB </span>","children":null,"spread":false},{"title":"geometry.js <span style='color:#111;'> 913B </span>","children":null,"spread":false},{"title":"display_webgl.js <span style='color:#111;'> 5.91KB </span>","children":null,"spread":false},{"title":"node_env.js <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"destructure.js <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"plane.js <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"frame_memory.js <span style='color:#111;'> 876B </span>","children":null,"spread":false},{"title":"algorithm.js <span style='color:#111;'> 722B </span>","children":null,"spread":false},{"title":"lib.js <span style='color:#111;'> 4.87KB </span>","children":null,"spread":false},{"title":"addon","children":[{"title":"png_read_write.cc <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"native.cc <span style='color:#111;'> 690B </span>","children":null,"spread":false},{"title":"sdl_display.cc <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false},{"title":"type.h <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"pixel_update_tasks.h <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"plane.h <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"png_read_write.h <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"gfx_types.h <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"plane.cc <span style='color:#111;'> 18.78KB </span>","children":null,"spread":false},{"title":"load_image.h <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"sdl_display.h <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"pixel_update_tasks.cc <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false},{"title":"load_image.cc <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false}],"spread":false},{"title":"rgb_map.js <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"printer_runner.js <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"palette_entry.js <span style='color:#111;'> 919B </span>","children":null,"spread":false},{"title":"web_env.js <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"gif_renderer.js <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"pixel_update_task.js <span style='color:#111;'> 8.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"serve.js <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"tools","children":[{"title":"locate_sdl.js <span style='color:#111;'> 798B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"color_overflow.js <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"line.js <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"testdata","children":[{"title":"pal_set.png <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"circle.png <span style='color:#111;'> 432B </span>","children":null,"spread":false},{"title":"fill_oscil.png <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"simple.png <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"color_overflow.png <span style='color:#111;'> 86B </span>","children":null,"spread":false},{"title":"line.png <span style='color:#111;'> 179B </span>","children":null,"spread":false},{"title":"composite.png <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"true_color.png <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"polygon.png <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"fill_prev.png <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"polygon_rotate.png <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"rect_square.png <span style='color:#111;'> 260B </span>","children":null,"spread":false}],"spread":false},{"title":"rect_square.js <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"image.js <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"true_color.js <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"destructure.js <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"system_colors.js <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"polygon_rotate.js <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"circle.js <span style='color:#111;'> 844B </span>","children":null,"spread":false},{"title":"simple.js <span style='color:#111;'> 843B </span>","children":null,"spread":false},{"title":"fill_frame_oscil_test.js <span style='color:#111;'> 566B </span>","children":null,"spread":false},{"title":"palette_entry.js <span style='color:#111;'> 550B </span>","children":null,"spread":false},{"title":"fill_previous.js <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"util.js <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"polygon.js <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 91.06KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明