ansimax 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.es.md CHANGED
@@ -223,15 +223,17 @@ ctrl.stop();
223
223
  ```ts
224
224
  import { gradient } from 'ansimax';
225
225
 
226
+ const stops = ['#ff79c6', '#bd93f9', '#8be9fd'];
227
+
226
228
  // Cinco easings built-in + soporte para funciones personalizadas
227
- gradient('hola mundo', stops, { easing: 'linear' });
228
- gradient('hola mundo', stops, { easing: 'ease-in' });
229
- gradient('hola mundo', stops, { easing: 'ease-out' });
230
- gradient('hola mundo', stops, { easing: 'ease-in-out' });
231
- gradient('hola mundo', stops, { easing: 'cubic-bezier' });
229
+ console.log(gradient('hola mundo', stops, { easing: 'linear' }));
230
+ console.log(gradient('hola mundo', stops, { easing: 'ease-in' }));
231
+ console.log(gradient('hola mundo', stops, { easing: 'ease-out' }));
232
+ console.log(gradient('hola mundo', stops, { easing: 'ease-in-out' }));
233
+ console.log(gradient('hola mundo', stops, { easing: 'cubic-bezier' }));
232
234
 
233
235
  // O tu propia función de easing (t → t suavizado, ambos en [0,1])
234
- gradient('hola mundo', stops, { easing: (t) => t * t * t });
236
+ console.log(gradient('hola mundo', stops, { easing: (t) => t * t * t }));
235
237
  ```
236
238
 
237
239
  ### Gradientes cónicos (v1.2.0)
@@ -860,4 +862,4 @@ Ansimax está licenciada bajo **Apache License, Version 2.0** — una licencia p
860
862
 
861
863
  Si Ansimax te ayuda a hacer mejores CLIs, ¡dale ⭐ en [GitHub](https://github.com/Brashkie/ansimax)!
862
864
 
863
- </div>
865
+ </div>
package/README.md CHANGED
@@ -220,22 +220,28 @@ ctrl.stop();
220
220
 
221
221
  ### Easing Curves (v1.2.0)
222
222
 
223
+ <img src="media/easing_curves.png" alt="Colors and gradients" />
224
+
223
225
  ```ts
224
226
  import { gradient } from 'ansimax';
225
227
 
228
+ const stops = ['#ff79c6', '#bd93f9', '#8be9fd'];
229
+
226
230
  // Five built-in easings + custom function support
227
- gradient('hello world', stops, { easing: 'linear' });
228
- gradient('hello world', stops, { easing: 'ease-in' });
229
- gradient('hello world', stops, { easing: 'ease-out' });
230
- gradient('hello world', stops, { easing: 'ease-in-out' });
231
- gradient('hello world', stops, { easing: 'cubic-bezier' });
231
+ console.log(gradient('hello world', stops, { easing: 'linear' }));
232
+ console.log(gradient('hello world', stops, { easing: 'ease-in' }));
233
+ console.log(gradient('hello world', stops, { easing: 'ease-out' }));
234
+ console.log(gradient('hello world', stops, { easing: 'ease-in-out' }));
235
+ console.log(gradient('hello world', stops, { easing: 'cubic-bezier' }));
232
236
 
233
237
  // Or pass your own easing function (t → eased t, both in [0,1])
234
- gradient('hello world', stops, { easing: (t) => t * t * t });
238
+ console.log(gradient('hello world', stops, { easing: (t) => t * t * t }));
235
239
  ```
236
240
 
237
241
  ### Conic Gradients (v1.2.0)
238
242
 
243
+ <img src="media/conic_gradients.png" alt="Colors and gradients" />
244
+
239
245
  ```ts
240
246
  import { gradientRect } from 'ansimax';
241
247
 
@@ -860,4 +866,4 @@ Ansimax is licensed under the **Apache License, Version 2.0** — a permissive l
860
866
 
861
867
  If Ansimax helps you ship better CLIs, give it a ⭐ on [GitHub](https://github.com/Brashkie/ansimax)!
862
868
 
863
- </div>
869
+ </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ansimax",
3
- "version": "1.2.0",
4
- "description": "Zero-dependency CLI rendering library: colors, gradients, animations, ASCII art, pixel art, components, and themes \u2014 all in TypeScript.",
3
+ "version": "1.2.1",
4
+ "description": "Zero-dependency CLI rendering library: colors, gradients, animations, ASCII art, pixel art, components, and themes all in TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",