UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

30 lines (24 loc) 878 B
var Canvas = require('drawille-canvas-blessed-contrib').Canvas var Map = require('../map') var size = {height: 232, width: 380} canvas = new Canvas(size.width, size.height) var ctx = canvas.getContext() ctx.strokeStyle="green" ctx.fillStyle="green" ctx.clearRect(0, 0, canvas.width, canvas.height); var options = { excludeAntartica: true , disableBackground: true , disableMapBackground: true , disableGraticule: true , disableFill: true , height: size.height , width: size.width , startLon: 50 , endLon: 110 , startLat: 115 , endLat: 140 , region: 'us'} var map = new Map(options, canvas) map.draw() map.addMarker( {"lon" : "-96.7970", "lat" : "32.7767", color: "red", char: "X" } ) console.log(ctx._canvas.frame());