pixsy/index.pug

84 lines
2.0 KiB
Plaintext
Raw Normal View History

2017-12-22 17:22:08 +00:00
doctype html
html
head
// lodash
2017-12-23 16:45:27 +00:00
script(src="includes/lodash.min.js")
2017-12-22 17:22:08 +00:00
// jquery
2017-12-23 16:45:27 +00:00
script(src="includes/jquery.min.js")
2017-12-22 17:22:08 +00:00
// croppie
2017-12-23 16:45:27 +00:00
link(rel="stylesheet" href="includes/croppie.css")
script(src="includes/croppie.js")
2017-12-22 17:22:08 +00:00
2017-12-23 16:45:27 +00:00
// main stuff
link(rel="stylesheet" type="text/css" href="includes/style.css")
script(src="includes/script.js")
2017-12-22 17:22:08 +00:00
body
h1 image-to-bitsy
p convert any image to a bitsy room
#game-data.section
h2 game data
textarea#bitsy-data(placeholder="Bitsy data or html")
2017-12-23 16:45:27 +00:00
include includes/default.bitsy
2017-12-22 17:22:08 +00:00
#image.section
h2 image
input#imageUpload(type="file" accepts="image/*")
#croppie
#palette.section
h2 palette
form#palettes
table
tbody
#crop.section
h2 preview
canvas#preview(width=128, height=128)
input#brightness(type="range" min=-255 max=255 value=0)
label(for="brightness") brightness
//- to do
input#dithering(type="checkbox")
label(for="dithering") dithering
//- to do
input#smoothing(type="checkbox")
label(for="smoothing") smoothing
#output.section
h2 output
canvas#room-output(width=128, height=128)
2017-12-22 17:22:08 +00:00
2017-12-23 16:45:27 +00:00
//-
input#threshold(type="range" min=0 max=64)
br
label(for="threshold")
span.left use existing tiles
span.right create new tiles
2017-12-23 16:45:27 +00:00
br
2017-12-23 16:45:27 +00:00
input#roomName(placeholder="room name")
br
2017-12-22 17:22:08 +00:00
2017-12-23 16:45:27 +00:00
button#save Save
2017-12-23 16:45:27 +00:00
br
2017-12-23 16:45:27 +00:00
//-label favour broad strokes | favour details
2017-12-22 17:22:08 +00:00
2017-12-23 16:45:27 +00:00
br
2017-12-22 17:22:08 +00:00
2017-12-23 16:45:27 +00:00
//-button Download