Skip to content

Instantly share code, notes, and snippets.

@oquno
Last active November 21, 2020 19:57
Show Gist options
  • Save oquno/2d8b21a403cf6824bd46482beeadb57f to your computer and use it in GitHub Desktop.
Save oquno/2d8b21a403cf6824bd46482beeadb57f to your computer and use it in GitHub Desktop.
name card for Pixl.js
require('Font8x12').add(Graphics);
g.clear();
g.setFontVector(20);
g.drawString("oquno", 62, 10);
g.setFont8x12();
g.drawString("http://oq.la", 62, 35);
g.setFontVector(9);
g.drawString("07064591176", 62, 48);
var image = Graphics.createImage(`
##
##########
###############
###################
######################
#########################
#############################
###############################
#################################
####################################
#######################################
#################### ##################
################## ##################
################ #######################
############### #######################
############## ######################
############# ## ### ######################
############# ##### ##### ######################
############ ## ## ## ## ######################
############ ##### ##### #####################
############ ### #### ######################
############ #####################
############ ######################
############ ######################
############# ######################
############# #######################
############# #######################
############# #######################
############# #######################
############## ### #######################
############## ###### #######################
############## ##### ########################
############### #########################
################# ###########################
##################### ##############################
###########################################################
###########################################################
################################################ #######
################################################ #######
###################################### ######## ### ######
###################################### ######## ### ######
########################### ####### # ### #### ### ######
############### ##### # # ## ## ## ## ##### #######
############## ### # # ## ## ## # ###############
############## ##### ### ## # ## ## ## ###############
############## ##### ### ## # # ##### ################
############## ##### ### ## ##### ################
############### ##### #### ########### ################
############### ##### ###### ############################
############### ##### ###### ############################
################ #### ###### ###########################
################# # ######## ###########################
############################# ##########################
############################# ##########################
############################## ########################
#####################################################
#####################################################
####################################################
###################################################
##################################################
#################################################
################################################
##############################################
############################################
#########################################
#####################################
#################################
###############################
############################
########################
######################
###################
################
#############
########
`);
g.drawImage(image);
g.flip();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment