piskel/js/Constants.js

35 lines
843 B
JavaScript
Raw Normal View History

var Constants = {
2012-09-16 16:48:32 +00:00
DEFAULT_SIZE : {
height : 32,
width : 32
},
MAX_HEIGHT : 128,
MAX_WIDTH : 128,
2012-09-02 23:34:11 +00:00
2012-09-10 22:52:09 +00:00
DEFAULT_PEN_COLOR : '#000000',
TRANSPARENT_COLOR : 'TRANSPARENT',
/*
* Fake semi-transparent color used to highlight transparent
* strokes and rectangles:
*/
SELECTION_TRANSPARENT_COLOR: 'rgba(255, 255, 255, 0.6)',
2012-09-16 13:47:39 +00:00
/*
* When a tool is hovering the drawing canvas, we highlight the eventual
* pixel target with this color:
*/
TOOL_TARGET_HIGHLIGHT_COLOR: 'rgba(255, 255, 255, 0.2)',
2012-09-10 22:52:09 +00:00
/*
* Default entry point for piskel web service:
*/
2012-09-20 21:57:26 +00:00
PISKEL_SERVICE_URL: 'http://3.piskel-app.appspot.com',
2012-09-08 21:43:16 +00:00
2012-09-10 22:52:09 +00:00
GRID_STROKE_WIDTH: 1,
GRID_STROKE_COLOR: "lightgray",
LEFT_BUTTON : "left_button_1",
RIGHT_BUTTON : "right_button_2",
};