Tool that shows mapping data using Braille Pattern.
GitHub: https://github.com/YujiSODE/brMap
Copyright (c) 2019 Yuji SODE <[email protected]>
This software is released under the MIT License.
See LICENSE or http://opensource.org/licenses/mit-license.php
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢸⣿⣿⣠⣶⣶⣦⡀⠀⠀⠀⣶⣶⣆⣤⣶⣶⣶⠀⣿⣿⢻⣧⢀⣿⢻⣿⡇⠀⢠⣴⣶⣶⣶⣦⣄⠀⠀⢰⣶⣶⣠⣶⣶⣦⡀⠀⠀
⠀⠀⢸⣿⣿⠏⠉⠹⣿⣿⡄⠀⠀⣿⣿⣿⠋⠉⠉⠙⠀⣿⣿⠘⣿⣼⡿⢸⣿⡇⠀⠘⢉⣁⣀⣈⣹⣿⡇⠀⢸⣿⣿⠏⠉⠹⣿⣿⡄⠀
⠀⠀⢸⣿⣿⠀⠀⠀⣿⣿⡇⠀⠀⣿⣿⡇⠀⠀⠀⠀⠀⣿⣿⠀⠻⠿⠇⢸⣿⡇⠀⣾⣿⡿⠟⠛⢻⣿⡇⠀⢸⣿⣿⠀⠀⠀⣿⣿⡇⠀
⠀⠀⢸⣿⣿⣄⣀⣠⣿⣿⠃⠀⠀⣿⣿⡇⠀⠀⠀⠀⠀⣿⣿⠀⠀⠀⠀⢸⣿⡇⠸⣿⣿⣀⠀⣀⣾⣿⡇⠀⢸⣿⣿⣄⣀⣠⣿⣿⠃⠀
⠀⠀⠸⠿⠿⠙⠿⠿⠟⠃⠀⠀⠀⠿⠿⠇⠀⠀⠀⠀⠀⠿⠿⠄⠀⠀⠀⠸⠿⠇⠀⠙⠻⠿⠿⠛⠹⠿⠧⠀⢸⣿⣿⠙⠿⠿⠟⠃⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⠛⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
It requires Tcl 8.6+.
brMap.tcl
: Tool that shows mapping data using Braille Pattern
Synopsis
::brmap::brMap map;
Parameters
$map
: text map that is composed of 0, 1 and newline character (Unicode U+00000A)
It requires Tcl 8.6+.
mapGen_upper.tcl
: it returns 1 if the current cell value is more than average of its surroundings or 0mapGen_upperValue.tcl
: it returns 1 if the current cell value is more than given value or 0mapGen_lower.tcl
: it returns 1 if the current cell value is less than average of its surroundings or 0mapGen_lowerValue.tcl
: it returns 1 if the current cell value is less than given value or 0mapGen_gradient.tcl
: it returns 1 if the current cell is in gradient or 0
Synopsis
mapGen_upper width data;
mapGen_upperValue width value data;
mapGen_lower width data;
mapGen_lowerValue width value data;
mapGen_gradient width data;
Parameters
$width
: positive integer width$value
: numerical value$data
: numerical list
rgbaParse.tcl
:(R,G,B,a)
=>(R+G+B)*a/255
rgbaParse_alpha.tcl
:(R,G,B,a)
=>a
Synopsis
rgbaParse rgba;
rgbaParse_alpha rgba;
Parameters
$rgba
: a list of RGBa color values (0
to255
)
canvasToTcl.js
: Tool that scans a canvas element and generates download link for the RGBa data
Synopsis
canvasToTcl(canvasId);
Parameters
canvasId
: id of target canvas element to scanx0
andy0
: top-left coordinates
(x0,y0)
=(0,0)
is defaultw
andh
: width and height from top-left coordinates
(w,h)
=(100,100)
is defaultelement
: an optional element to add download links
body element is defaultOutput RGBa data in Tcl
$rgbaVar
: a list of RGBa data (0
to255
)$rgbaWidth
: width of target area
- Sode, Y. 2018-2019. brailleGen/brailleGen_min.tcl, the MIT License: https://gist.github.com/YujiSODE/e3453d43e9733e933c64c52eca45bcfe