Skip to content

Commit 53b88fe

Browse files
authored
Merge pull request #7 from Dicarvajalb/cambios-angela
ultimos cambios
2 parents 7b53973 + 668bf50 commit 53b88fe

File tree

5 files changed

+40
-88
lines changed

5 files changed

+40
-88
lines changed

README.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
# Showcase Template
1+
# Grupo de estudio
2+
- Angela Cardenas
3+
- Diego Carvajal
4+
- Brayan Portela
5+
- David Muñoz
26

3-
Welcome to the [gohugo](https://gohugo.io/) template to create rich content [academic reports](https://www.wordy.com/writers-workshop/writing-an-academic-report/) having [p5.js](https://p5js.org/) sketches.
4-
5-
## Hacking
6-
7-
Install the [gohugo](https://gohugo.io/) [static site generator](https://jamstack.org/generators/) then:
8-
9-
```sh
10-
$git clone https://github.com/VisualComputing/showcase
11-
$cd showcase
12-
$git submodule update --init --recursive
13-
$hugo server -D --disableFastRender
14-
```
15-
16-
Deploy with `$git push` after redefined `baseURL` in `config.toml` which should point to your actual public remote.
17-
18-
### Remarks
19-
20-
1. If you renamed the repo, say to `newreponame`, don't forget to update all url references of the markdown and js file sources, to reflect that change, i.e., look in all the [content folder](https://github.com/VisualComputing/showcase/tree/main/content) files for `showcase` occurrences and replace them by `newreponame`.
21-
2. If you forked the repo don't forget to activate the [actions](https://github.com/VisualComputing/showcase/actions).
22-
3. Don't forget to select the `gh-pages` branch as the one to serve your site from at the [pages section of your repo configuration page](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site), if it is no so by default.
23-
4. The **showcase** template uses the [hugo-book](https://github.com/alex-shpak/hugo-book) theme by default. Check the [hugo themes site](https://themes.gohugo.io/) if you wish to add other ones.

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
baseURL = "https://dicarvajalb.github.io/visual_computing"
22
languageCode = "en-us"
3-
title = "Showcase Template"
3+
title = "Grupo de estudio"
44
theme = "book"
55

66
# Book configuration

content/_index.md

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,8 @@ title: Introduction
33
type: docs
44
---
55

6-
# Showcase Template
7-
8-
Welcome to the [gohugo](https://gohugo.io/) template to create rich content [academic reports](https://www.wordy.com/writers-workshop/writing-an-academic-report/) having [p5.js](https://p5js.org/) sketches.
9-
10-
## Hacking
11-
12-
Install the [gohugo](https://gohugo.io/) [static site generator](https://jamstack.org/generators/) then:
13-
14-
```sh
15-
$git clone https://github.com/VisualComputing/showcase
16-
$cd showcase
17-
$git submodule update --init --recursive
18-
$hugo server -D --disableFastRender
19-
```
20-
21-
Deploy with `$git push` after redefined `baseURL` in `config.toml` which should point to your actual public remote.
22-
23-
### Remarks
24-
25-
{{< hint info >}}
26-
If you renamed the repo, say to `newreponame`, don't forget to update all url references of the markdown and js file sources, to reflect that change, i.e., look in all the [content folder](https://github.com/VisualComputing/showcase/tree/main/content) files for `showcase` occurrences and replace them by `newreponame`.
27-
{{< /hint >}}
28-
29-
{{< hint info >}}
30-
If you forked the repo don't forget to activate the [actions](https://github.com/VisualComputing/showcase/actions).
31-
{{< /hint >}}
32-
33-
{{< hint info >}}
34-
Don't forget to select the `gh-pages` branch as the one to serve your site from at the [pages section of your repo configuration page](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site), if it is no so by default.
35-
{{< /hint >}}
36-
37-
{{< hint info >}}
38-
The **showcase** template uses the [hugo-book](https://github.com/alex-shpak/hugo-book) theme by default. Check the [hugo themes site](https://themes.gohugo.io/) if you wish to add other ones.
39-
{{< /hint >}}
6+
# Grupo de estudio
7+
- Angela Cardenas
8+
- Diego Carvajal
9+
- Brayan Portela
10+
- David Muñoz

content/docs/shortcodes/Taller 1/Multiplicacion RGB.md

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,36 @@ Pasos dentro del código:
1313

1414
{{< details title="source code" open=false >}}
1515
{{< highlight html >}}
16-
let angle = 0;
17-
let speed = 0.05;
18-
let circleColor = true;
19-
16+
let backgroundColor;
17+
let color1, color2
2018
function setup() {
21-
createCanvas(400, 400);
19+
createCanvas(200, 200);
20+
let c1 = createInput("0,0,0",'color')
21+
let c2 = createInput("0,0,0",'color')
22+
23+
24+
c1.input(()=> setColor1(c1,c2))
25+
c2.input(()=> setColor1(c1,c2))
2226
}
2327

24-
function draw() {
25-
background(220);
26-
angle += speed;
27-
strokeWeight(1)
28-
circle(200,200,400);
29-
cirrcle(375)
30-
}
28+
function setColor1(c1,c2){
29+
let color1 = color(red(c1.value()), green(c1.value()), blue(c1.value()))
30+
let black = color(0,0,0)
31+
fill(color1)
32+
rect(0,0, 130,130)
33+
let color2 = color(red(c2.value()), green(c2.value()), blue(c2.value()))
34+
fill(color2)
35+
rect(70,70, 130,130)
36+
37+
//let white = color(255,255,255)
38+
39+
const cred = (red(c1.value()) * red(c2.value())) / 255;
40+
const cblue = (blue(c1.value()) * blue(c2.value())) / 255;
41+
const cgreen = (green(c1.value()) * green(c2.value())) /255;
42+
fill(color(cred, cgreen,cblue))
43+
rect(70,70, 60,60)
44+
//background(cred,cgreen,cblue)
3145

32-
function cirrcle(size){
33-
fill(255,255,0)
34-
if(circleColor){
35-
fill(0,0,255)
36-
}
37-
circleColor = !circleColor
38-
39-
if(size>100){
40-
translate(p5.Vector.fromAngle(millis() / 1000, 12.5));
41-
strokeWeight(0)
42-
circle(200,200, size);
43-
cirrcle(size-25)
44-
}else if(size>0){
45-
translate(p5.Vector.fromAngle(millis() / 1000, -12.5));
46-
circle(200,200, size);
47-
cirrcle(size-25)
48-
}
49-
return
5046
}
5147
{{< /highlight >}}
5248
{{< /details >}}

content/sketches/histogram.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ function preload() {
5050
line(xPos, y1, xPos, y2);
5151
}
5252
pop()
53-
}
53+
}
54+
55+
//Bibliografia: https://editor.p5js.org/ebenjmuse/sketches/HyPfeGkCZ

0 commit comments

Comments
 (0)