# dbn-canvas **Repository Path**: mirrors_LancerComet/dbn-canvas ## Basic Information - **Project Name**: dbn-canvas - **Description**: Use DBN (Design By Numbers) Language to draw in canvas. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DBN-Canvas DBN (Design By Numbers) Language parser written in TypeScript, inspired by this article: [How to be* a compiler — make a compiler with JavaScript](https://medium.com/@kosamari/how-to-be-a-compiler-make-a-compiler-with-javascript-4a8a13d473b4#.r832qh7i8) Draw in canvas by using simple language! [Demo](http://htmlpreview.github.io/?https://github.com/LancerComet/dbn-canvas/blob/master/index.html) is here. ## Usage. ```ruby # Draw in Use #paper-canvas # We need a white paper. # 0 is black, 100 is white. Paper 100 # Get a black pen. Pen 0 # Draw a horizontal line in the middle of this canvas. # Line startX startY endX endY Line 0 50 100 50 # That's it! ``` ## License MIT.