Commit graph

70 commits

Author SHA1 Message Date
Vinzenz Schroeter 78a4d4dbcf add Brightness::saturating_from 2024-10-15 21:37:36 +02:00
Vinzenz Schroeter 593a975d5c rename convert to map
also use the fact that T is known to be Copy
2024-10-15 21:37:36 +02:00
Vinzenz Schroeter bd0ecd77d2 rename PixelGrid to Bitmap 2024-10-15 21:37:36 +02:00
Vinzenz Schroeter 8d3ca4dfad clippy fixes 2024-10-14 22:28:41 +02:00
Vinzenz Schroeter be17319993 add unit tests 2024-10-13 16:51:32 +02:00
Vinzenz Schroeter ab82900414 improve whitespace handling when converting between string and grid 2024-10-13 16:31:03 +02:00
Vinzenz Schroeter 526f6264bf easier conversion of PrimitiveGrids 2024-10-13 16:13:12 +02:00
Vinzenz Schroeter e1ca802268 CP437 conversion functions 2024-10-13 13:45:28 +02:00
Vinzenz Schroeter ce946c2fb8 improve docs 2024-10-13 13:41:22 +02:00
Vinzenz Schroeter f7fddda8f1 improve announce example 2024-10-13 13:40:26 +02:00
Vinzenz Schroeter dbbe631741 fix enable all features for docs.rs, bump version again for re-upload 2024-10-12 20:07:55 +02:00
Vinzenz Schroeter 55524a69e2 fix doctest, enable all features for docs.rs 2024-10-12 19:53:47 +02:00
Vinzenz Schroeter 9b618d4f35 bump version to 0.9.0, cleanup readme 2024-10-12 19:44:17 +02:00
Vinzenz Schroeter 366aec054f close connection on drop 2024-10-12 19:33:49 +02:00
Vinzenz Schroeter 5f8f691464 add tests 2024-10-12 18:38:43 +02:00
Vinzenz Schroeter 3d47b41106 conversion between UTF-8 and CP-437 2024-10-12 18:23:36 +02:00
Vinzenz Schroeter c7764c49e1 add websocket binary message protocol 2024-10-12 16:18:27 +02:00
Vinzenz Schroeter f434b5bf83 udp protocol as feature 2024-10-12 13:04:56 +02:00
Vinzenz Schroeter 942968fcf4 fix error message, add test 2024-10-11 21:38:47 +02:00
Vinzenz Schroeter 03f7495695 add function to load Cp437Grid from str 2024-10-11 21:38:24 +02:00
Vinzenz Schroeter 21cc7e3f12 fixup! hide packets to reduce api surface for new users 2024-10-11 21:37:28 +02:00
Vinzenz Schroeter 46cb48c126 convert between origin units 2024-10-11 21:36:27 +02:00
Vinzenz Schroeter 78b5d1180b hide packets to reduce api surface for new users 2024-10-10 23:41:08 +02:00
Vinzenz Schroeter 26bace8990 add links to documentation, add some docs 2024-10-10 23:17:19 +02:00
Vinzenz Schroeter 96c010de56 set version to 0.8.0 2024-09-07 15:14:44 +02:00
Vinzenz Schroeter 341c0ef2cd change cbindgen sorting to None 2024-09-07 13:25:35 +02:00
Vinzenz Schroeter e97418b51b named fields instead of tuple for Packet, doc adjustments 2024-09-07 11:47:42 +02:00
Vinzenz Schroeter 051dbfabea wrap and rename ALL the types 2024-09-05 21:25:15 +02:00
Vinzenz Schroeter b9fc06117e wip connection trait 2024-08-29 23:22:52 +02:00
Vinzenz Schroeter d385d8e1d4 add packet clone 2024-08-29 22:23:23 +02:00
Vinzenz Schroeter 14faeb1238 replace * with - for bullets in comments 2024-08-29 19:39:18 +02:00
Vinzenz Schroeter d48180ddb2 set version to 0.7.0 2024-06-27 19:41:13 +02:00
Vinzenz Schroeter 7252ad5abe move code to make functions smaller 2024-06-27 19:38:07 +02:00
Vinzenz Schroeter fc0705b826 more examples and documentation 2024-06-26 17:05:07 +02:00
Vinzenz Schroeter e3c418efcf add examples for brightness, replace ByteGrid with PrimitiveGrid 2024-06-25 22:33:53 +02:00
Vinzenz Schroeter 52080c0ad0 minor tweaks to examples 2024-06-25 22:18:57 +02:00
Vinzenz Schroeter 4cd86d3494 examples, format 2024-06-23 18:03:50 +02:00
Vinzenz Schroeter 555d917d96 separate types for c api 2024-06-23 18:03:50 +02:00
Vinzenz Schroeter c554fbd800 wip BrightnessGrid 2024-06-23 15:14:18 +02:00
Vinzenz Schroeter e0647bacd6 encode origin unit in type 2024-06-23 13:59:47 +02:00
Vinzenz Schroeter 672b5e0581 docs, formatting 2024-06-23 13:59:47 +02:00
Vinzenz Schroeter c4c6708533 limit brightness to valid levels, optional rand dependency to implement Distribution trait
fixup! limit brightness to valid levels, optional rand dependency to implement Distribution trait
2024-06-23 13:59:47 +02:00
Vinzenz Schroeter e1f009ee6f examples: error message on connection failure 2024-06-23 13:51:09 +02:00
Vinzenz Schroeter 649e2a39c3 version 0.6.0 2024-06-05 20:35:20 +02:00
Vinzenz Schroeter 894de966bc more tests 2024-06-05 20:23:44 +02:00
Vinzenz Schroeter b08fd97066 more tests, move stuff 2024-06-05 20:14:05 +02:00
Vinzenz Schroeter 9a4987787e add brightness tester 2024-06-03 22:49:00 +02:00
Vinzenz Schroeter 59301a5fc5 add PixelGrid::iter_mut, tests 2024-06-03 22:48:12 +02:00
Vinzenz Schroeter a4d53d0e56 add missing docs 2024-06-03 22:10:52 +02:00
Vinzenz Schroeter 947a3fe60e replace bit_vec module with bitvec library 2024-06-03 21:54:00 +02:00