Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mad4j/book-mdpc
Browse files Browse the repository at this point in the history
  • Loading branch information
mad4j committed Aug 16, 2023
2 parents 4a3965b + 687ceaa commit 98ab47c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,16 @@ Use PDE `File -> Examples... -> Add examples` or follow these links to manually
<a href="examples/volume6/robocop/">
<img src="examples/volume6/robocop/robocop.png" width="120px" title="RoboCop"/>
</a>
<a href="examples/volume6/robocop_2014/">
<img src="examples/volume6/robocop_2014/robocop-2014.png" width="120px" title=""/>
</a>
<a href="examples/volume6/squid_game/">
<img src="examples/volume6/squid_game/squid-game.png" width="120px" title="Squid Game"/>
</a>
<br class="index-separator"/>
<a href="examples/volume6/up/">
<img src="examples/volume6/up/up.png" width="120px" title="Up"/>
</a>
<br class="index-separator"/>
<a href="examples/volume6/watchmen/">
<img src="examples/volume6/watchmen/watchmen.png" width="120px" title="Watchmen"/>
</a>
Expand Down
Binary file modified examples/volume6-index.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion examples/volume6/eastern_promises/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ void draw() {
drawStar();

save("eastern-promises.png");

}

void drawStar() {
Expand Down
3 changes: 1 addition & 2 deletions examples/volume6/robocop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In a dystopic and crime-ridden Detroit, a terminally wounded cop returns to the
// Manuale di Programmazione Cinematografica
// Daniele Olmisani, 2021

// Robocop (1987)
// RoboCop (1987)


final color PAPER = color(165, 170, 175);
Expand Down Expand Up @@ -54,7 +54,6 @@ void draw() {
line(-1.5*RADIUS, 0.0, 1.5*RADIUS, 0.0);

save("robocop.png");

}

```
Expand Down
37 changes: 18 additions & 19 deletions examples/volume6/robocop_2014/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
---
permalink: /examples/volume6/robocop/
title: RoboCop (1987) | Minimalist Movie Poster
permalink: /examples/volume6/robocop_2014/
title: () | Minimalist Movie Poster
description: Minimalist Movie Poster generated using Java and Processing.
---

# RoboCop (1987)
# ()


Action, Crime, Sci-Fi, Thriller

## Plot
In a dystopic and crime-ridden Detroit, a terminally wounded cop returns to the force as a powerful cyborg haunted by submerged memories.

[details](https://www.imdb.com/title/tt0093870/)

[details](https://www.imdb.com/title//)

## Movie Poster
<img src="robocop.png" width="360px" title="RoboCop">
<img src="robocop-2014.png" width="360px" title="">


## The code
```java
// Manuale di Programmazione Cinematografica
// Daniele Olmisani, 2021
// Daniele Olmisani, 2023

// Robocop (1987)
// RoboCop (2014)


final color PAPER = color(165, 170, 175);
final color INK = color(20);
final color PAPER = color(10, 10, 20);
final color INK = color(215, 0, 100);

final float RADIUS = 0.3;
final float RADIUS = 0.6;

void setup() {
size(480, 640);
Expand All @@ -45,16 +45,15 @@ void draw() {

background(PAPER);

stroke(INK);
noFill();

strokeWeight(50*U);
line(-RADIUS, 0.0, RADIUS, 0.0);
stroke(INK);
strokeWeight(25*U);

strokeWeight(2*U);
line(-1.5*RADIUS, 0.0, 1.5*RADIUS, 0.0);
rectMode(CORNERS);
rect(-RADIUS, 0.0, RADIUS, -1.0, 0.25);

save("robocop.png");

save("robocop-2014.png");
}

```
Expand Down

0 comments on commit 98ab47c

Please sign in to comment.