With the characters of the previous projects, I made a program with the code "Vars". With this code we have buttons to control and change the various parts of the characters. We can change the typography and the font size.
Code of the program:
size(670,500)
colormode(CMYK, 255)
#variação de cor
var(‘Ciano’,NUMBER,0,0,255)
var(‘Magenta’,NUMBER,0,0,255)
var(‘Yellow’,NUMBER,0,0,255)
var(‘blacK’,NUMBER,0,0,255)
background(Ciano,Magenta,Yellow,blacK)
#variações das partes de cada personagem
roupa = [“corpo1.png”, “corpo2.png”, “corpo3.png”,”corpo4.png”,
“corpo5.png”, “corpo6.png”,”corpo7.png”, “corpo8.png”, “corpo9.png”,”corpo10.png”]
var(“roupas”, NUMBER,0,0,9)
imagem = roupa[int(roupas)]
image(imagem, 0, 0)
cabeca = files(“cabecas/*.png”)
var(“cabecas”, NUMBER,0,0,9)
imagem = cabeca[int(cabecas)]
image(imagem, 0, 0)
barba = files(“barba/*.png”)
var(“barbas”, NUMBER,0,0,9)
imagem = barba[int(barbas)]
image(imagem, 0, 0)
acessorio = files(“acessorio/*.png”)
var(“acessorios”, NUMBER,0,0,9)
imagem = acessorio[int(acessorios)]
image(imagem, 0, 0)
olho = files(“olho/*.png”)
var(“olhos”, NUMBER,0,0,9)
imagem = olho[int(olhos)]
image(imagem, 0, 0)
cabelo = files(“cabelo/*.png”)
var(“cabelos”, NUMBER,0,0,9)
imagem = cabelo[int(cabelos)]
image(imagem, 0, 0)
#texto
advice = [ “Penso, logo, existo.”, “Amen”, “Vai com Deus!”,”Meeeeeh…”,”Feliz Natal!”]
var( “frase”, NUMBER, 0, 0, 4)
texto = advice[int(frase)]
var(“fonte”, TEXT, “Helvetica”)
var(“tamanho”, NUMBER, 48, 8, 128)
fill(0)
font( fonte, tamanho)
p = textpath(texto, 10, 250)
drawpath(p)
Class: Specialized Graphics
3º year
1º semester
2010/2011




