This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{env, path::Path}; | |
use image::{open, Rgb}; | |
use imageproc::drawing::draw_text_mut; | |
use rusttype::{Font, Scale}; | |
fn main() { | |
let arg = env::args().nth(1).expect("Please provide a valid path"); | |
let sprite_width: i32 = env::args() | |
.nth(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"github.com/spf13/viper" | |
) |