xxxxxxxxxx
244
const Y_AXIS = 1;
const X_AXIS = 2;
let b1, b2, c1, c2;
function setup() {
createCanvas(800, 600);
b1 = color(255);
b2 = color(255,255,255,0);
//noLoop();
}
var prevSec;
var millisRolloverTime;
let myFont;
function preload() {
myFont = loadFont('assets/font.ttf');
}
function draw() {
// Fetch the current time
var H = hour();
var M = minute();
var S = second();
// Reckon the current millisecond,
// particularly if the second has rolled over.
// Note that this is "more correct" than using millis()%1000;
if (prevSec != S) {
millisRolloverTime = millis();
}
prevSec = S;
var mils = floor(millis() - millisRolloverTime);
let Hour = ["Eius et ipsum rerum quis ut. Veniam eos ut qui. Doloribus facere consequatur quidem fugiat nisi libero enim et.", "Nemo enim ipsam voluptatem, quia voluptas sit", "Doloribus labore quia commodi. Quibusdam nesciunt corrupti voluptates est."]
let Minute = ["Eius et ipsum rerum quis ut. Veniam eos ut qui. Doloribus facere consequatur quidem fugiat nisi libero enim et.", "Nemo enim ipsam voluptatem, quia voluptas sit", "Doloribus labore quia commodi. Quibusdam nesciunt corrupti voluptates est.", " Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus"]
let Second = ["Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat", "Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus", "Eius et ipsum rerum quis ut. Veniam eos ut qui. Doloribus facere consequatur quidem fugiat nisi libero enim et.", "Nemo enim ipsam voluptatem, quia voluptas sit.", "Doloribus labore quia commodi. Quibusdam nesciunt corrupti voluptates est.", " Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus."]
let Hour_1 = [
"It was midnight when...",
"I remember it like it was yesterday, the day",
"It wasn't even dawn when",
"Last Friday, the world started burning when",
"I was three years old, watching the television, when",
"My grandfather was walking down the street when",
"My mom told me about how",
"I remember that Álvaro Uribe Vélez was president when",
"I vividly recall the first time I heard of when",
"My mom was in the army, doing her medial training in Turbo, Antioquia when",
"I can't bring myself to tell you about when",
"I think it was a decade or two ago when",
"Not too long ago... in Garzon, Huila, ",
"On her way back to school",
"When my grandfather died, and my family decided to burry him in La Guajira,",
"In the town right next to Bogotá,",
"Five months before I was born, ",
"A few years ago, in the department of Antioquia,",
"I can't recall if it was in Riohacha or Uribia, but I remember when",
"In Medellín, Antioquia",
"It happened decades ago, but the memory is as vivid as if it happened yesterday, when",
"I had never heard the term 'extrajudician killings' as an euphemism for a massacre until",
"Last night I saw the news of the exhumed graves from the cementary of those dubbed the 'False Positives', I recalled when",
"I was fourteen when"]
let Minute_1 = ["a young man named José Abel ",
"a young girl named Salomé, ",
"my son, Daniel Castilla",
"my mother",
"Carmen, whose name was changed to protect her identity",
"Magola",
"Pastora, whose name has been changed to protect her identity, ",
"Monseñor Romero",
"Ana Rosa Cuartas, mother of José Norbey Galeano,",
"Rosalba Franco, mother of Gloria,",
"Adriana, whose name has been changed to protect her identity, ",
"a woman",
"a Wayuu leader, victim of the paramilitaries,",
"Lilia, mother of Leidi Jhoana (age 15), ",
"an unnamed victim of the paramilitaries",
"a woman who lost her son who was a 'False Positive' in Ocaña, Norte de Santander",
"a woman who survived the massacre in Bojayá, Chocó",
"an unnamed victim of the Armed Forces",
"someone in the bus",
"an unnamed victim of the military",
"an unnamed victim of the FARC",
"a woman who lost her daughter to the paramilitary",
"my brother",
"a woman from Bogotá",
"a displaced leader from Commune 13",
"a woman from Primavera, Arauca:",
"my father",
"Pastora Mira",
"an unnamed victim of the ELN",
"my neighbor",
"a woman from Riosucio, Chocó",
"Carolina",
"one of the mothers from Soacha",
"my cousin",
"a mother of a girl",
"a female victim of the Paramilitaries in Timba. Cauca ",
"my classmate, Maria Elena",
"someone i met in the street",
"my mom's uncle",
"my best friend's father"]
let Second_1 = ["stepped on a mine in his family's farm. His eyes blurred with sand and a lack of sensation in his extremeties came, with the realization that his legs had been mutilated.",
"was round up and shot, and left on the ground, only to be found by family.",
"was left quadraplegic after suffering from meningitis.",
"was violently raped and aggrieved by a man at age four.",
"never went back to school after being raped. It was raining, and she couldn't stop crying. Her mom and her decided to not denounce her rapist.",
"never saw his wife again after being captured. He has two kids, but he can't talk to them because the phones are broken. He got a few cards from his family, but it's really hard to not feel forgotten.",
"wishes to be able to work again.",
"was detained by the FARC/ELN/paramilitary (it could also have been the military, nobody who was there can recall) when the car they were in lost a wheel, and they were stuck by the curbside of the highway. Nothing happened, but they still remember it like it was yesterday.",
"first found out out the pricetag on a Colombian life.",
"slept through the sound of landmines muffled by the buzz of a fan.",
"saved a deeply wounded guerrillero, she didn't know he was her son's murderer.",
"wishes deeply to see them again.",
"last spoke to her husband and younger brother eight years ago. They worked as 'jornaleros' and one day they disappeared, they came back martyred, tortured and tied up.",
"greeted a military officer in her own home, she didn't know he was her son's murderer. ",
"said 'I have been victim of every single armed group, from the ELN, to the AUC, to the FARC and the military. Because of that I know you don't fix this by thinking 'eye for an eye''.",
"ran away from her uncle who had joined the FARC and raped her. She met with her other unclde, who also raped her.",
"said 'They did what they wanted with me'.",
"who was one of the victims of the ultra right-wing sectors that promoted the message 'Make a homeland, kill a cure'.",
"dreamt of resistence.",
"heard the gunshots from her apartment windows.",
"whose life changed when her son disappeared.",
"lost her husband in Buenos Aires, Cauca. She couldn't sleep, eat or drink. She wishes that they would've found his body so they could've given him a Christian burial.",
"who disappeared in the crematorial ovens of the paramilitary camps.",
"said 'I know he wasnt roped up, and I know they didn't throw him into the river. He was in the oven and I want him back. They told me the ashes of a person fit in a box of shoes.. and if that's what I can get back of him, I hope they let me have it'",
"fought a battle with the truth.",
"asked, 'when will we have a reparation? When will the high ranks of the police and the miliary see justice?'",
"lost her daughter. She thought he had just left because she was a mad at her. She searched for many years.",
"at least now knows that she's dead and can finally put her soul to rest. ",
"thanks the man who murdered her young daughter in Medellín, Antioquia, because at least he told saved her from a deep, long lasting sorrow. Because now she knows that she is dead and that they will give her back her remains. ",
"wants people to know that there are people whose dream's were stripped away, whose lives were trampled, their dignity, their dreams.",
"said 'I am glad that I can speak.'",
"saved their names in in highways, cars, jails so that everyone can see the. Who they were, what they did, and why they killed them. Most importantly, why they took them away.",
"said 'they will never pay back our dead with reparations'.",
"still feels rage towards the dismissal of their deaths, and the multitude of lies that they say in every version of a confession. ",
"engraved their names in every place she could imagine, so that no one forgets them.",
"said 'I feel freed. It is not every day that I get to to talk about it.'",
"was always asked about the deaths every person she ecountered, but they never asked her about her life.",
"said 'If pain is not what unites us, then what can unite us? If not my daughter around my palms and the promises and the strength I begged of her to give me the strength to help others recover from the pain'.",
"showed us the ruins, and told us 'in truth, I never come here, it is too sad and too painful.'",
"said 'Why us? Why did it have to happen? Everything is running out... We are losing our community...from our customs, to our everything. We used to be the poorest ones, but we had what made us happy'",
"remembered the conversation: \n 'But why are you taking us?' \n 'Because you are accomplices.' \n 'Accomplices of what?'",
"remembers the hours left before being told to vacate her home. ",
"told us ''Why did it happen to us?' is what we always ask ourselves. Why us, when we do no harm to others?'",
"was told by her mother 'But that is life, that is what violence is here. We suffer. We are is who is terrified. We are the ones living through this. The people who doesn't live it are those who are normal, after all to them it's as if nothing at all was happening.'",
"believes that to live in her own body is to live in the suffering that the violence leaves behind.",
"remembered the small farm where her family tried to reconstruct her lives, but soon fell apart when the terror of the guerrilla dominates: 'There it comes, taking away our young girls, and so we had to flee'",
"was taken away in the morning.",
]
background(255);
textFont(myFont);
fill(100);
textSize(10);
textAlign(CENTER, CENTER);
let prevH;
let prevM;
let prevS;
if (H < 1){
prevH = 24;
} else{
prevH = H - 1;
}
if (M < 1){
prevM = 60;
} else{
prevM = M - 1;
}
if (S < 1){
prevS = 60;
} else{
prevS = S - 1;
}
text(Hour_1[((prevH)%Hour_1.length)], 120, 100, 150, 150);
text(Minute_1[((prevM)%Minute_1.length)], 300, 100, 150, 150);
text(Second_1[((prevS)%Second_1.length)], 490, 100, 150, 150);
fill(0);
textSize(14);
textAlign(CENTER, CENTER);
text(Hour_1[(H%Hour_1.length)], 120, 225, 150, 150);
text(Minute_1[M%Minute_1.length], 300, 225, 150, 150);
text(Second_1[(S%Second_1.length)], 490, 225, 150, 150);
noStroke();
fill(100);
textSize(10);
textAlign(CENTER, CENTER);
text(Hour_1[((H+1)%Hour_1.length)], 120, 350, 150, 150);
text(Minute_1[((M+1)%Minute_1.length)] , 300, 350, 150, 150);
text(Second_1[((S+1)%Second_1.length)], 490, 350, 150, 150);
setGradient(50, 125, 700, 100, b1, b2, Y_AXIS);
setGradient(50, 375, 700, 100, b2, b1, Y_AXIS);
noStroke();
}
function setGradient(x, y, w, h, c1, c2, axis) {
noFill();
if (axis === Y_AXIS) {
// Top to bottom gradient
for (let i = y; i <= y + h; i++) {
let inter = map(i, y, y + h, 0, 1);
let c = lerpColor(c1, c2, inter);
stroke(c);
line(x, i, x + w, i);
}
} else if (axis === X_AXIS) {
// Left to right gradient
for (let i = x; i <= x + w; i++) {
let inter = map(i, x, x + w, 0, 1);
let c = lerpColor(c1, c2, inter);
stroke(c);
line(i, y, i, y + h);
}
}
}
/*
noStroke();
fill(sin((H/24))*255, sin((M/60))*255,sin((S/60))*255);
rect(0,0,800,800)
fill(sin(H/24)*255,0, 0);
rect(10,10, 80, 80);
fill(0, sin(M/60)*255,0);
rect(90,90, 80, 80);
fill(0, 0,sin(S/60)*255);
rect(170,170, 80, 80);
*/