This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys, termios, StringIO | |
| import Image # PIL | |
| class SixelConverter: | |
| def __init__(self, image, f8bit = False): | |
| if f8bit: # 8bit mode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <time.h> | |
| #define M_PI 3.1415926535f | |
| typedef struct { | |
| float x, y; | |
| } Vec2; |