Axel

screenshot of Axel

AXEL is a Node.js graphics library for drawing graphics to your console with ASCII characters. AXEL has been designed to help create games, retro graphics and spice up the terminal components of your Node.js applications.

Overview

AXEL, short for ASCII-Pixel, is a cutting-edge Node.js graphics library that breathes life into your console through ASCII character graphics. Ideal for game development and retro-style applications, AXEL transforms terminal outputs into dynamic visual experiences, making it a perfect tool for developers looking to add a creative twist to their Node.js projects. With AXEL, you can easily craft engaging games or enhance your application's terminal components with captivating graphics.

This library provides straightforward commands that mimic traditional graphic programming, allowing for quick implementation and experimentation. Whether you're crafting a retro arcade game or simply looking to enliven your console output, AXEL offers an array of features that streamline the development process and enhance the visual aesthetic of your applications.

Features

  • Box: Easily create filled boxes in your terminal with the command box(x1, y1, width, height), perfect for framing sections of your graphics.
  • Line: Draw straight lines with line(x1, y1, x2, y2), adding depth and structure to your visualization.
  • Point: Place individual characters at specific coordinates using point(x, y), allowing for precise graphical control.
  • Foreground Color: Change the color of your ASCII graphics with fg(red, green, blue), enabling colorful and vibrant displays.
  • Background Color: Similarly, adjust the background colors with bg(red, green, blue), making your graphics stand out even more.
  • Text: Display text at chosen coordinates using text(x, y, string), seamlessly incorporating messages or labels into your graphics.
  • Scrub: Clear sections of your graphics with scrub(x1, y1, width, height), similar to the HTML5 Canvas clear method, keeping the interface clean.
  • Character Brush: Customize the character used for drawing with brush = '[character]', allowing for unique textures and ASCII art designs.