# {beginner} House Project pt.2

https://pastebin.com/vFUAhF4H

Hello!a few days ago, I asked for help on making an object moved when clicked. Now, I need to make it do things when keys are pressed, which I thought I would be able to do on my own. I was wrong. Could anyone suggest edits?

submitted by /u/PokeCraft4615

# How to make a triangle grow congruently as the mouseX moves. Ex. when the mouseX increases, the triangle grows, and as it decreases, the triangle shrinks. I thought that you could just substitute it in the float values, however, either it jitters, grows exponentially, or remains static. Thanks much.

``int pulse = 15; int pulsedim = 1; float x1 = 200; float y1 = 200; float x2 = x1 + 50; float y2 = 200; float x3 = (x1 + x2)/2; float y3 = (50*sqrt(3)/2)+200; float toggle = 1; void setup() { size(1920, 600); background(217, 217, 217); } void draw() { background(219, 219, 219); triangle(x1, y1, x2, y2, x3, y3); ``

//subtract 86.6025403784 to first x (200) and divide by 2. //1) //25(sqrt3) = 86.6025403784 //2) //200 + (86.6025403784/2) //3) // = 243.301270189

``x1 -= toggle; y1 -= toggle; x2 += toggle; y2 -= toggle; y3 += toggle * sqrt(3)/2; if (x1<177 || x1>223) { toggle *= -1; } int diam = abs(mouseX - width); color bgroundm = (color) (norm(diam, width, 0) * 400); ``

//******************************** if (pulse > 60) { //* pulsedim = 0; //* } else if (pulse < 1) { //* Just true/false statements for pulse pulsedim = 1; //* } //* //********************************

//******************************** if (pulsedim == 1) { //* pulse = pulse+1; //* } else if (pulsedim == 0) { //* Just true/false statements for pulse pulse = pulse-1; //* } //* //******************************** }

``void mouseMoved() { redraw(); } ``
submitted by /u/vickerswt

# I am working on a project to make a triangle shrink and grow. I thought my if statements were correct, but nothing seems to be working. Thanks for those who help!

int pulse = 15; int pulsedim = 1;

float x1 = 200; float y1 = 200; float x2 = x1 + 50; float y2 = 200; float x3 = (x1 + x2)/2; float y3 = (50*sqrt(3)/2)+200;

void setup(){ size(1920,600); background(217,217,217); }

void draw(){

background(219,219,219); triangle(x1,y1,x2,y2,x3,y3); //subtract 86.6025403784 to first x (200) and divide by 2. //1) //25(sqrt3) = 86.6025403784 //2) //200 + (86.6025403784/2) //3) // = 243.301270189

x1 = x1 - 1; y1 = y1 - 1; x2 = x2 + 1; y2 = y2 - 1; y3 = y3 + 1;

if (x1<177){ x1 = x1 - 1; y1 = y1 - 1; x2 = x2 + 1; y2 = y2 - 1; y3 = y3 + 1; }

else if (x1>223){ x1 = x1 + 1; y1 = y1 + 1; x2 = x2 - 1; y2 = y2 + 1; y3 = y3 - 1; }

int diam = abs(mouseX - width);

color bgroundm = (color) (norm(diam, width, 0) * 400);

//******************************** if (pulse > 60) { //* pulsedim = 0; //* } else if (pulse < 1) { //* Just true/false statements for pulse pulsedim = 1; //* } //* //********************************

//******************************** if (pulsedim == 1) { //* pulse = pulse+1; //* } else if (pulsedim == 0) { //* Just true/false statements for pulse pulse = pulse-1; //* } //* //********************************

}

void mouseMoved(){ redraw(); }

submitted by /u/vickerswt

# Processing Android App >> Bluetooth transceiver >> Arduino Nano >> Circuit

Wondering how difficult it would be to accomplish this? My biggest question would be setting the pairing process in processing and then of course sending strings from Phone >> Nano, Nano >> Phone is not a needed.
Or perhaps is there an easier way then using processing to create the app?

submitted by /u/don_wilson

# Photography and its ghostly footprints

If you find yourself in Amsterdam these days, don’t miss the fascinating exhibition Back to the Future at FOAM. I actually wish i could go back and visit it a second time.

Taiyo Onorato and Nico Krebs, Light of Other days

Taiyo Onorato and Nico Krebs, Light of Other days

The show draws parallels between the nineteenth century pioneers of photography who experimented with the technological and visual potential of the medium and today’s artists who are following in their footsteps by inventing new ways to use the materiality and processes of photography.

There’s a lot to dig through, learn and applaud in that show but i’m going to be my best lazy blogger today and pick up only one work: Taiyo Onorato and Nico Krebs‘s 2012 series Light of Other days.

Their haunting images were made by placing light-sensitive silver gelatin paper in a large analogue camera, resulting in direct and unique positive images. With exposure times sometimes longer than a minute and the help of electric drills to rattle the scenes, they create enigmatic images swirling whirlpools or produce a bright starry sky in their studio.

The combination of the qualities of the positive photographic paper and the impossibility to fully control the oddly staged happenings evokes 19th century’s attempts to photographically capture paranormal activities.

Taiyo Onorato and Nico Krebs, Light of Other days

Taiyo Onorato and Nico Krebs, Light of Other days

Taiyo Onorato and Nico Krebs, Light of Other days

Back to the Future is at FOAM in Amsterdam until 28 March 2018. The exhibition will travel in an adapted version to C/O Berlin, Germany in September.

# What’s up with stroke weight on 2d shapes in 3d?

I want to create a circle that has a thick outline that is rotated in 3d.

I have code for it that seems reasonable. However, my code produces some weird results: when I have a non-one stroke weight, it shows something like a second half circle on top of half of the main circle. I'm not sure how to describe it, but it seems like a bug to me.

Here's my code:

``void setup() { size(300, 300, P3D); } void draw() { strokeWeight(10); background(127); translate(150, 150); rotateY(1.0); shape(createShape(ELLIPSE, 0, 0, 200, 200)); } ``

(I'm on Processing 3.3.6 on macOS)

submitted by /u/gbear605

# Activestills. Photography as Protest in Palestine/Israel

Activestills. Photography as Protest in Palestine/Israel, edited by Vered Maimon, a Senior Lecturer in the Art History Department at Tel Aviv University, and by Shiraz Grinbaum, a curator and photo editor for the Activestills Collective and researcher at Tel Aviv University.

On amazon USA and UK.

Publisher Pluto Press writes: In 2005, a group of photographers took a stand alongside the people of the small town of Bil’in, and documented their fight to stop the Israeli government building the infamous West Bank Barrier. Inspired by what they had seen in Bil’in, the group went on to form Activestills, a collective whose work has become vital in documenting the struggle against Israeli occupation and everyday life in extraordinary situations.

Photography as Protest in Palestine/Israel examines the collective’s archive and activity from historical, theoretical, critical, and personal perspectives. It is the result of an in-depth dialogue among members of the collective and activists, journalists, intellectuals, and academics, and stands as the definitive study of the collective’s work.

Combining striking full-colour photographs with essays and commentary, the book stands as both a major contribution to reportage on Israel/Palestine and a unique collection of visual art.

Children sit amidst their belongings after a demolition in al-Araqib village in the south of present-day Israel, October 2009. Credit: Activestills.org

African asylum seekers and their supporters gather in Levinsky Park, Tel Aviv, December 2013. Credit: Activestills.org

Demonstrators stage a solidarity action with Khader Adnan, who embarked on a lengthy hunger strike to protest his detention by Israel without charge or trial, in the West Bank village of Bilin, February 2012. Credit: Activestills.org

Activestills is a group of Israeli, Palestinian and international photographers who use their camera as a tool for social and political change. Unlike most photo reporters, the members of Activestills don’t see themselves as impartial and external witnesses but as part and parcel of the events they document. They don’t see their subjects as victims either, but as political agents who play an important role in the resistance against all forms of oppression.

Activestills dedicates an important portion of its coverage to the Israeli occupation and its two corollaries: the resistance against it and the violations of human rights carried out in broad day light. But the group also looks at injustices that happen within Israel: LGBTQ campaigns for equality, continuous discrimination against Arab citizens of Israel, migration and asylum seekers, resistance against privatization of natural resources, the ultra-Orthodox community’s resistance to compulsory military enlistment, etc.
They see connections and parallels between theses struggles.

The Halif family site near an improvised dinner table set near their demolished house in Givat Amal neighbourhood, Tel Aviv, Israel, September 19, 2014. Two days passed since the third eviction of families in the neighbourhood which left 20 residents homeless without proper compensation or alternative housing solution. Credit: Activestills.org

Activestills street exhibition, Bil’in, West Bank, 2007. Credit: Activestills.org

Another important focus of Activestills is that that they want their images and the social issues they address to be visible to everyone. The group not only collaborates with independent media but they also set up street exhibitions in the very spaces where the images have been taken, making them closer to an audience of people who are directly affected by the situations documented. The street shows also find their way to Israel. Although the audience there might sometimes be less willing to engage with some of the struggles that the photos uncover.

I’ve been admiring the work of the photo collective for years. Activestills. Photography as Protest in Palestine/Israel is a relentlessly interesting book that analyses the group’s practices of intervention and visualization of struggles and explores their unique identity within the field of photo reporting. As you can expect, the book is splendidly illustrated with images of the collective’s work but it also contains essays, conversations with and texts by activists and by photographers who further illuminate and contextualize the work of Activestills, the way it challenges paradigms of news consumption and embeds solidarity into each of its actions.

A protester during confrontations with Israeli forces north of the West Bank city of Ramallah, near the Beit El settlement, November 2015. Credit: Activestills.org

Palestinian farmer and activist Muhammad Amira climbs a ladder next to the separation wall to watch over Israeli soldiers arriving to open the agricultural gate in his village, Ni’lin, in the West Bank. After the building of the wall in Ni’lin, many farmers were separated from their agricultural land. In order to work on their land, they must apply for wall-crossing permits from the Israeli army. Credit: Activestills.org

Residents of the ‘unrecognized’ village of Al-Araqib hold Activestills photos documenting their struggle during a protest against the demolition of their homes, 2010. Israeli authorities have since demolished the village over 100 times. Credit: Activestills.org

In the West Bank village of Nabi Saleh, Israeli soldiers arrest Nariman Tamimi, a photographer herself, as her 8-year-old daughter, Ahed, tries to free her during a protest against the occupation in August 2012. Credit: Activestills.org

Photographs of Ali Saad Dawabsha, the Palestinian baby in an overnight arson attack, are laid out on the floor of his family home, Douma, West Bank, July 31, 2015. Credit: Activestills.org

Protesters take part in a demonstration calling for animal liberation. Tel Aviv, Israel (2013). © Activestills

Israeli soldiers try to arrest Activestills photographer Oren Ziv during a protest against settler violence in the West Bank, October 2012. Credit: Activestills.org

# stopping functions from running in void draw();

I am doing my first project , recreating atari breakout and i have a question, i have this code in a function that runs in void draw();

``void enemy(float x, float y) { float lenght = 200; float height = 40; rect( x, y, lenght, height ); if ( bX > x - lenght/2 + r/32 && bX < x + lenght/2 - r/32 && bY < y + height/2 + r/2 ) { dY = dY * -1; x = 10000; } } ``

when the if is satisfied , i want to make the whole function stop running from void draw(); or the non-elegant way , to just set the x somewhere off the screen, but because its in void draw(),i think every time it runs the code , the x is being set to the x value from "void enemy(float x, float y)". I also tried putting return; after and instead of x = 10000 but it doesn't stop the function from running.

submitted by /u/DariusFTW2