• Stars
    star
    138
  • Rank 264,508 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dummy graphic editor to make isometric illustrations

triangulart (v2 beta)

Dummy graphic editor to make isometric illustrations. It's like pixel art, but with triangles.

Try it on maxwellito.github.io/triangulart

This version is still on beta and not fully stable.

File format

On the v2, we are making things simpler, one unique file format : the SVG. On the first version the editable format was in JSON, and I think it was a bad design choice. Having one format make it easier for the final user.

Here are the details

<svg version="1.1" preserveAspectRatio="xMinYMin slice" width="930" height="520" viewBox="0 0 930 520">
    <!--{"isLandscape":true,"mapWidth":"31","mapHeight":20,"palette":["#11aaff","#ff0002","#c5ceda","#000000"]}-->
    <path d="M345 0 L330 26 L360 26 Z" fill="#000000" rel="22"></path>
    <path d="M345 0 L360 26 L375 0 Z" fill="#000000" rel="23"></path>
    <path d="M375 0 L360 26 L390 26 Z" fill="#000000" rel="24"></path>
    <path d="M375 0 L390 26 L405 0 Z" fill="#000000" rel="25"></path>
    ...
</svg>

The SVG first child node is a comment containing the JSON of the basic details of the artwork. It contains the orientation, width, height, and the palette. Then every path got the rel attribute to contain the triangle index.

for v2.1 (aka neverland)

  • Auto save (but better, with little signal)
  • Responsive layout (the menu and nav is clunky)
  • Better care of error cases
  • MASSIVE PERF ISSUES ON BIG WORKSPACE : MOVE TO CANVAS (and light the weight of triangulart class)
  • Zoom in/out
  • Clipboard!

More Repositories

1

vivus

JavaScript library to make drawing animation on SVG
JavaScript
14,931
star
2

minimator

Minimalist graphical editor
TypeScript
343
star
3

vivus-instant

Single page app to create independent stroke animated SVGs
JavaScript
307
star
4

breaklock

Web game, hybrid of Mastermind and the Android pattern lock
JavaScript
288
star
5

triangulr

JavaScript class to generate maps of triangles
HTML
71
star
6

hexabeat

A music sequencer using commits
TypeScript
44
star
7

ghoster

Remove the white color from an image to make it transparent
JavaScript
34
star
8

tetrispad

Use the Novation Launchpad to play Tetris
JavaScript
28
star
9

wallery

Generate a map from a list of displayable elements
JavaScript
21
star
10

commitbeat

Generate small sequence of music from commit SHA
JavaScript
13
star
11

life-in-the-uk

HTML
12
star
12

palette

Angular app to generate color palettes
JavaScript
8
star
13

graxel

HTML
8
star
14

es6-quiz-slides

ECMA Script 6 quiz built with reveal.js
CSS
6
star
15

flipbits

The best random powered AI to take decisions
JavaScript
5
star
16

drafts

A place to put some drafts and examples
JavaScript
4
star
17

zapper

Injectable script to kill popup and banners
JavaScript
4
star
18

chromecast-canal-plus

JavaScript injection to cast videos from canalplus.fr
JavaScript
3
star
19

shuntr

Chrome extension boilerplate to define redirection rules
JavaScript
3
star
20

weluvarte

JavaScript injection to get video file links from arte.tv
JavaScript
2
star
21

tilt

A trolling attempt to change tech habits
HTML
2
star
22

a-playground

Personal A-Frame playground
JavaScript
2
star
23

me-from-the-past

PWA to send message to your future yourself [experimental]
JavaScript
1
star
24

liwe-talk

Liwe introduction at LNUG (23rd June 2015)
1
star