This is the code for getting started with PS2. The drop down
selects previous saved settings. The show data
button exposes
the current drawing as JSON so it can be added to the code.
Replace this README with information about your alphabet.
license: mit |
license: mit |
license: mit |
(Replace this README with information about your alphabet. This is an example.)
Each of my letters is composed with two circles. The size and position of the first circle is fixed, but the location and size of the second circle is controlled by three parameters.
The three parameters per letter:
size
: radius of the second circleoffsetx
: x offset of the second circle relative to the first oneoffsety
: y offset of the second circle relative to the first oneSundials are always right side up. What if they were upside-down. You Just like the movie.
license: mit | |
height: 720 |
license: mit | |
height: 720 |
# khot.py: | |
# an experimental generialization of 1-hot encoding, encodes a sparse binary vector with multiple bits | |
# | |
# currently the API is to call combins_table(n, k) to build an two way mapping from | |
# integers to n-choose-k binary vectors. returns an array and reverse lookup table. | |
import scipy.misc | |
# inspiration from https://www.reddit.com/r/algorithms/comments/4o5a9x/unique_mapping_from_integer_to_nk_combination/ |