Commit Graph

22 Commits

Author SHA1 Message Date
cf23a92548
bahaghari/lib: add radian <-> degree conversion in math subset 2024-06-27 21:08:09 +08:00
2576ef4e43
bahaghari/lib: implement basic HSL color namespace 2024-06-15 13:48:34 +08:00
25654828c0
bahaghari/lib: add optionalNull to top-level 2024-06-14 23:54:37 +08:00
5f07c5b0fc
bahaghari/lib: add math.sqrt function 2024-06-01 13:21:30 +08:00
817ec35b02
bahaghari/lib: add floor and ceil for math subset
Even though they're already available from the builtins, we still want
the library subset to feel consistent.
2024-05-30 14:42:29 +08:00
14049db2e4
bahaghari/lib: add more functions to math subset 2024-05-29 22:56:33 +08:00
c15ec954c0
bahaghari/lib: init colors.rgb subset 2024-05-21 20:42:08 +08:00
f882c30209
bahaghari/lib: add isNumber and scale 2024-05-21 20:27:12 +08:00
9bb2ca951e
bahaghari/lib: update comments 2024-03-02 18:13:56 +08:00
66b35ea2c6
bahaghari: update library arguments
It makes it confusing sometimes. Not worth keeping the design.
2024-03-02 18:10:21 +08:00
fc2f27eea8
bahaghari/lib: add clamp 2024-03-02 12:58:48 +08:00
878dddea77
bahaghari/lib: init math subset
In preparation for implementing the colorspace library subset.
2024-02-29 22:06:33 +08:00
b84d07ac0c
bahaghari/lib: update hex subset with generateBaseDigitType 2024-02-28 18:43:20 +08:00
29d4bb657a
bahaghari/lib: init generateBaseDigitType 2024-02-28 18:39:00 +08:00
103988226b
bahaghari/lib: add pow and generateConversionTable 2024-02-28 10:43:37 +08:00
15a43cd1e5
chore: reformat codebase 2024-02-25 18:20:13 +08:00
89a9bc32a0
bahaghari/lib: reformat and update comments 2024-02-24 21:39:02 +08:00
fe4f1d1ae9
bahaghari/lib: init isHexString 2024-02-24 21:34:03 +08:00
e8bdb850bc
bahaghari/lib: init generateGlyphSet 2024-02-24 18:59:25 +08:00
6000026719
bahaghari/lib: update comments 2024-02-24 10:30:41 +08:00
0af7a31d7b
bahaghari/lib/trivial: add toYAML and toBaseDigitsWithGlyphs 2024-02-24 10:29:59 +08:00
fdc8476751
bahaghari: init lib
Now it is pretty familiar to use as you can also extend it like nixpkgs'
library.
2024-02-23 14:57:33 +08:00