audrey-images
v1.0.4
Published
audrey-two scion for display images over the console
Downloads
5
Maintainers
Readme
audrey-images
Scion for audrey-two VCCLI (View-Control-Command-Line-Interface) ^v2.0.0
What this scion does?
Include images into your audrey-two-view.
Specifications
Audrey-two version 2.0.0 change the way of control your CLI-views. The tags, now replaced by custom audrey-seeds that you can include or not in your projects.
Install
Example
$ npm install --save audrey-two
npm install --save audrey-images
Usage
Example
var myTerminalDisplay={
body:["x?image"],//tell audrey where you want to display it
image:"path/to/image.png" ,//tell audrey what image you want to use
};
var audrey2= require('nameOfView','audrey-two');//inicialize audrey
var audrey= audrey2(myTerminalDisplay);
//run your command and pass error objects to audrey
audrey.seed(["audrey-images-x?"]);//It's an scion don't forget th "x"
//tell audrey that there is a new seed
audrey.encore();//run audrey
Image display
This scion only works with very small png images, because it doesn't matter about the width of the screen and cos it treats every pixel as a character. So a 120x120 pixels it'll print a mess of color characters.
Look at this image and you'll look the pixels respect the magenta text.