core.json
1.9 kB · json · 128 lines
1[2 {3 "fn": "core::Tensor::rot90",4 "in": {5 "data": [6 0,7 1,8 2,9 3,10 4,11 5,12 6,13 7,14 8,15 9,16 10,17 1118 ],19 "shape": [20 3,21 422 ],23 "k": 1,24 "axes": [25 0,26 127 ]28 },29 "out": {30 "shape": [31 4,32 333 ],34 "data": [35 3,36 7,37 11,38 2,39 6,40 10,41 1,42 5,43 9,44 0,45 4,46 847 ]48 },49 "note": "one quarter turn in the (0, 1) plane, the numpy law"50 },51 {52 "fn": "core::Color::from_hex",53 "in": {54 "hex": "#ff3d40"55 },56 "out": {57 "rgba": [58 255,59 61,60 64,61 25562 ],63 "hex": "#ff3d40"64 },65 "note": "the house red parsed, then printed back by to_hex"66 },67 {68 "fn": "core::png",69 "in": {70 "colors": [71 [72 255,73 0,74 0,75 25576 ],77 [78 0,79 255,80 0,81 25582 ],83 [84 0,85 0,86 255,87 25588 ],89 [90 255,91 255,92 255,93 25594 ]95 ],96 "width": 2,97 "height": 2,98 "scale": 399 },100 "out": "4eefe6c1267c79b22624cc282926bb3cd13378d91a2d8f737a456d90e63a9f46",101 "note": "sha256 of the png bytes, which pins the encoder and the scale"102 },103 {104 "fn": "core::Colorizer::color",105 "in": {106 "background": "#000000",107 "ramp": [108 "#ff3d40",109 "#3d40ff"110 ],111 "shades": 4,112 "values": [113 0,114 1,115 2,116 3117 ],118 "max": 9119 },120 "out": [121 "#000000",122 "#ff3d40",123 "#ff3d40",124 "#ff3d40"125 ],126 "note": "gradient_bins first; four shades against a max of 9 bin every live value at the ramp head"127 }128]