Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | instructions for Universal Ctags | Kartik K. Agaram | 2021-07-07 | 2 | -3/+4 |
| | | | | Thanks Sumeet Agarwal for raising this issue. | ||||
* | . | Kartik K. Agaram | 2021-07-07 | 1 | -9/+9 |
| | |||||
* | render ppm/pgm | Kartik K. Agaram | 2021-07-07 | 1 | -7/+106 |
| | | | | Looks pretty bad compressing 256 shades of grey to 8. | ||||
* | load ppm/pgm/ppm on demand | Kartik K. Agaram | 2021-07-07 | 1 | -8/+113 |
| | |||||
* | initial image rendering | Kartik K. Agaram | 2021-07-07 | 5 | -0/+6163 |
| | | | | | | Supports just some ASCII formats: https://en.wikipedia.org/wiki/Netpbm Colors are messed up. That's next. | ||||
* | . | Kartik K. Agaram | 2021-07-06 | 1 | -8/+18 |
| | |||||
* | . | Kartik K. Agaram | 2021-07-06 | 2 | -44/+44 |
| | |||||
* | nearest h/s/l color by a euclidean metric | Kartik K. Agaram | 2021-07-06 | 1 | -0/+51 |
| | |||||
* | primitives for double-buffering | Kartik K. Agaram | 2021-07-05 | 1 | -4/+152 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I thought I needed these for this bouncing-ball demo: def (bounce screen) with (w (width screen) h (height screen) cx 16 cy 16 dx 12 dy 19) while 1 clear screen ring screen cx cy 16 3 5 cx += dx cy += dy when (or (cx > w) (cx < 0)) set dx 0-dx when (or (cy > h) (cy < 0)) set dy 0-dy for _ 0 (< _ 100) ++_ # delay No matter how I adjusted the delay I couldn't get rid of the jitter. So I built a double-buffered version: (bounce2 . [def (bounce2 screen) with (w (width screen) h (height screen) cx 16 cy 16 dx 12 dy 19 screen2 (new_screen (columns screen) (lines screen))) while 1 clear screen2 ring screen2 cx cy 16 3 5 cx += dx cy += dy when (or (cx > w) (cx < 0)) set dx 0-dx when (or (cy > h) (cy < 0)) set dy 0-dy blit screen2 screen for _ 0 (< _ 100) ++_]) # delay But it didn't make a difference! Turns out nothing will help you when successive frames are too far apart. This is the correct tweak to `bounce`: - dx 12 - dy 19) + dx 1 + dy (/ 19 12)) Still, we'll keep double-buffering around for the future. | ||||
* | shell: fix clear on screens | Kartik K. Agaram | 2021-07-05 | 1 | -1/+1 |
| | | | | | | | Broken since commit c95648c96 on Jul 3. Unclear what test to write for this. Should clear-stream check for NULL? Should apply-clear? | ||||
* | expose Mu implementation of 'bezier' | Kartik K. Agaram | 2021-07-05 | 1 | -1/+256 |
| | | | | Still no support for acute-angled control points. | ||||
* | replace 'circle' with Mu implementation | Kartik K. Agaram | 2021-07-05 | 2 | -19/+161 |
| | |||||
* | replace 'vline' with Mu implementation | Kartik K. Agaram | 2021-07-05 | 2 | -6/+162 |
| | |||||
* | replace 'hline' with Mu implementation | Kartik K. Agaram | 2021-07-05 | 2 | -9/+165 |
| | |||||
* | replace 'line' with Mu implementation | Kartik K. Agaram | 2021-07-05 | 2 | -32/+196 |
| | |||||
* | grow code region yet again | Kartik K. Agaram | 2021-07-05 | 3 | -2/+16 |
| | | | | We need a cleaner way to do this. | ||||
* | . | Kartik K. Agaram | 2021-07-05 | 1 | -1/+1 |
| | |||||
* | . | Kartik K. Agaram | 2021-07-05 | 1 | -140/+140 |
| | |||||
* | reading from streams | Kartik K. Agaram | 2021-07-03 | 8 | -23/+206 |
| | | | | | | The Mu shell has no string literals, only streams. No random access, only sequential access. But I've been playing fast and loose with its read pointer until now. Hopefully things are cleaned up now. | ||||
* | alists | Kartik K. Agaram | 2021-07-03 | 1 | -0/+13 |
| | |||||
* | new primitive: cons? | Kartik K. Agaram | 2021-07-03 | 1 | -1/+42 |
| | |||||
* | . | Kartik K. Agaram | 2021-07-03 | 1 | -5/+10 |
| | |||||
* | . | Kartik K. Agaram | 2021-07-03 | 1 | -4/+4 |
| | |||||
* | reorg primitives on screen | Kartik K. Agaram | 2021-07-02 | 2 | -43/+80 |
| | |||||
* | clean up final abort in macroexpand | Kartik K. Agaram | 2021-06-30 | 2 | -1/+14 |
| | |||||
* | delete a known issue | Kartik Agaram | 2021-06-30 | 1 | -3/+0 |
| | | | | I can't reproduce the issue with the keyboard handler anymore :/ | ||||
* | more general timer interface | Kartik K. Agaram | 2021-06-29 | 4 | -17/+46 |
| | |||||
* | . | Kartik K. Agaram | 2021-06-29 | 1 | -0/+0 |
| | |||||
* | move timer handler to boot.subx | Kartik K. Agaram | 2021-06-29 | 2 | -468/+26 |
| | |||||
* | timer and keyboard handlers working together | Kartik K. Agaram | 2021-06-29 | 1 | -18/+44 |
| | |||||
* | . | Kartik K. Agaram | 2021-06-29 | 1 | -10/+8 |
| | |||||
* | . | Kartik K. Agaram | 2021-06-29 | 1 | -5/+5 |
| | |||||
* | timer working in presence of null keyboard handler | Kartik K. Agaram | 2021-06-29 | 1 | -2/+2 |
| | |||||
* | . | Kartik K. Agaram | 2021-06-29 | 1 | -1/+23 |
| | |||||
* | ooh, timer works fine in isolation | Kartik K. Agaram | 2021-06-29 | 1 | -0/+416 |
| | | | | Acknowledging the interrupt is necessary. | ||||
* | poking at the broken timer interrupt handler again | Kartik K. Agaram | 2021-06-29 | 1 | -19/+1 |
| | |||||
* | . | Kartik Agaram | 2021-06-27 | 1 | -22/+21 |
| | |||||
* | . | Kartik K. Agaram | 2021-06-27 | 1 | -5/+11 |
| | |||||
* | . | Kartik K. Agaram | 2021-06-27 | 3 | -2/+2 |
| | |||||
* | simplify Qemu instructions | Kartik K. Agaram | 2021-06-27 | 1 | -12/+10 |
| | | | | | Turns out we don't need a special case for KVM. https://qemu.readthedocs.io/en/latest/system/invocation.html | ||||
* | . | Kartik K. Agaram | 2021-06-27 | 2 | -16/+20 |
| | |||||
* | html: better highlighting for int registers | Kartik Agaram | 2021-06-26 | 108 | -4912/+4824 |
| | |||||
* | . | Kartik Agaram | 2021-06-26 | 261 | -1499/+1499 |
| | | | | | Switch html rendering to my current colorscheme with a little less blue, for night browsing. | ||||
* | . | Kartik Agaram | 2021-06-26 | 1 | -6/+0 |
| | | | | Drop some long-obsolete tooling. I no longer use iTerm2. | ||||
* | . | Kartik Agaram | 2021-06-24 | 1 | -38/+44 |
| | |||||
* | . | Kartik Agaram | 2021-06-24 | 261 | -8393/+8636 |
| | | | | Switch html rendering to a white background. | ||||
* | . | Kartik Agaram | 2021-06-24 | 1 | -53/+0 |
| | |||||
* | . | Kartik Agaram | 2021-06-24 | 1 | -3/+3 |
| | |||||
* | . | Kartik Agaram | 2021-06-24 | 5 | -2/+2 |
| | |||||
* | . | Kartik Agaram | 2021-06-24 | 1 | -1/+1 |
| |