Skip to content

Commit 74f029a

Browse files
more image descriptions
1 parent 1ee3fc9 commit 74f029a

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

content/tutorials/text/data/index.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In [Strings and Drawing Text](http://processing.org/learning/text/), we saw how
4646

4747
<FixedImage center width={333} height={222}>
4848

49-
![](./fig_18_01_user_input.png)
49+
![example result of sketch. black text of instructions and a series of numbers below input by a user](./fig_18_01_user_input.png)
5050

5151
</FixedImage>
5252

@@ -193,7 +193,7 @@ Once the text file is in place, Processing’s `loadStrings()` function is used
193193

194194
<FixedImage center width={333} height={130}>
195195

196-
![](./fig_18_02_filetxt.png)
196+
![window showing the content of the sample file with 5 lines of text](./fig_18_02_filetxt.png)
197197

198198
</FixedImage>
199199

@@ -208,7 +208,7 @@ To run the code, create a text file called “file.txt,” type a bunch of lines
208208

209209
<FixedImage center width={333} height={130}>
210210

211-
![](./fig_18_03_datatxt.png)
211+
![series of 10 numbers with commas in between ranging from 16 to 169](./fig_18_03_datatxt.png)
212212

213213
</FixedImage>
214214

@@ -218,7 +218,7 @@ The results of visualizing this data are shown below.
218218

219219
<FixedImage side width={200} height={200}>
220220

221-
![](./fig_18_04_bargraph.png)
221+
![greyscale bar graph aligned on the top and varying lengths downward. longer bars are lighter](./fig_18_04_bargraph.png)
222222

223223
</FixedImage>
224224

@@ -252,7 +252,7 @@ A table consists of data arranged as a set of rows and columns, also called “t
252252

253253
<FixedImage center width={333} height={130}>
254254

255-
![](./fig_18_05_datacsv.png)
255+
![contents of a file where the first line is headings and the 4 following lines are data, all seperated by commas](./fig_18_05_datacsv.png)
256256

257257
</FixedImage>
258258

@@ -278,7 +278,7 @@ Now that the table is loaded, I can show how you grab individual pieces of data
278278

279279
<FixedImage center width={645} height={222}>
280280

281-
![](./data_05_headers.jpg)
281+
![table of data with the first line being x, y, diameter, name and then the data below in 4 rows](./data_05_headers.jpg)
282282

283283
</FixedImage>
284284

@@ -367,7 +367,7 @@ The following example puts all of the above code together. Notice how each row o
367367

368368
<FixedImage center width={500} height={375}>
369369

370-
![](./fig_18_07_tablebubbles.png)
370+
![four circles/bubbles of varied diameter from the data table. the bubble the mouse is hovering over has the label joyous. at the bottom it says click to add bubbles](./fig_18_07_tablebubbles.png)
371371

372372
</FixedImage>
373373

@@ -477,7 +477,7 @@ Here, the distance between a given point and a circle's center is compared to th
477477

478478
<FixedImage center width={406} height={210}>
479479

480-
![](./fig_18_08_rollover.png)
480+
![diagram shows why the distance calculation being larger than the radius means you are not in the circle and vice versa](./fig_18_08_rollover.png)
481481

482482
</FixedImage>
483483

@@ -568,15 +568,15 @@ An example of data only available as HTML is the [Internet Movie Database](http:
568568

569569
<FixedImage center width={333} height={234}>
570570

571-
![](./fig_18_09_shaunsheep.png)
571+
![screenshot of imdb page for the movie](./fig_18_09_shaunsheep.png)
572572

573573
</FixedImage>
574574

575575
Looking in the HTML source from the above URL, I find a giant mess of markup.
576576

577577
<FixedImage center width={333} height={233}>
578578

579-
![](./fig_18_10_shaunsheep_sourc.png)
579+
![screenshot of the source code for the webpage](./fig_18_10_shaunsheep_sourc.png)
580580

581581
</FixedImage>
582582

@@ -623,7 +623,7 @@ The following code retrieves both the running time and movie poster iamge from I
623623

624624
<FixedImage center width={333} height={388}>
625625

626-
![](./fig_18_11_parsing_imdb.png)
626+
![the movie poster for Shaun the Sheep with the text of the title and runtime of the movie below](./fig_18_11_parsing_imdb.png)
627627

628628
</FixedImage>
629629

@@ -700,15 +700,15 @@ As you learned earlier, an array is an ordered list of variables. Each element o
700700

701701
<FixedImage center width={355} height={174}>
702702

703-
![](./fig_18_12_traditional_arra.png)
703+
![diagram showing how each of the five numbers is associated with an index 0 to 4](./fig_18_12_traditional_arra.png)
704704

705705
</FixedImage>
706706

707707
However, what if instead of numbering the elements of an array you could name them? This element is named “Sue,” this one “Bob,” this one “Jane,” and so on and so forth. In programming, this kind of data structure is often referred to as an _associative array, map,_ or _dictionary._ It’s a collection of (key, value) pairs. Imagine you had a dictionary of people's ages. When you look up “Sue” (the key), the definition, or value, is her age, 24.
708708

709709
<FixedImage center width={354} height={173}>
710710

711-
![](./fig_18_13_associative_arra.png)
711+
![diagram showing a series of numbers with people's names below each](./fig_18_13_associative_arra.png)
712712

713713
</FixedImage>
714714

@@ -757,7 +757,7 @@ The concordance now becomes a rather simple program to write. All I need to do i
757757

758758
<FixedImage center width={333} height={394}>
759759

760-
![](./fig_18_14_concordance_viz.png)
760+
![resultiung bar graph showing the word "the" is used 592 times, "and" 570 times and so on for the top 13 words](./fig_18_14_concordance_viz.png)
761761

762762
</FixedImage>
763763

@@ -832,7 +832,7 @@ XML organizes information in a tree structure. Let’s imagine a list of student
832832

833833
<FixedImage center width={500} height={320}>
834834

835-
![](./data_06_xml.jpg)
835+
![heirarchy tree with Students at the top, four students under that, some items under one of the students, and under one item "address" there are more items: street, city, state and zip](./data_06_xml.jpg)
836836

837837
</FixedImage>
838838

@@ -893,7 +893,7 @@ The data is mapped in the tree stucture shown below:
893893

894894
<FixedImage center width={500} height={214}>
895895

896-
![](./data_07_weatherxml.jpg)
896+
![tree diagram with RSS at the top, Channel underneath, and item under that. branching from item are many tags](./data_07_weatherxml.jpg)
897897

898898
</FixedImage>
899899

@@ -972,7 +972,7 @@ Following is the above code put together in an example that retrieves weather da
972972

973973
<FixedImage center width={200} height={129}>
974974

975-
![](./fig_18_17_weather.png)
975+
![resulting text with the zipcode, high temperature, and forecast](./fig_18_17_weather.png)
976976

977977
</FixedImage>
978978

@@ -1055,7 +1055,7 @@ I can use `getChildren()` to retrieve the array of `<bubble>` elements and make
10551055

10561056
<FixedImage center width={500} height={375}>
10571057

1058-
![](./fig_18_07_tablebubbles.png)
1058+
![four circles/bubbles of varied diameter from the data table. the bubble the mouse is hovering over has the label joyous. at the bottom it says click to add bubbles](./fig_18_07_tablebubbles.png)
10591059

10601060
</FixedImage>
10611061

@@ -1429,7 +1429,7 @@ In the above example, I likely don't want to request the data sixty times per se
14291429

14301430
<FixedImage center width={200} height={78}>
14311431

1432-
![](./fig_18_19_thread.png)
1432+
![a circle of lines resembling the lines of a timer. next to it is the time in numbers](./fig_18_19_thread.png)
14331433

14341434
</FixedImage>
14351435

content/tutorials/text/rendering/index.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
slug: '/tutorials/rendering'
3-
title: 'Render Techniques'
4-
author: 'Casey Reas and Ben Fry'
5-
intro: 'Tools for rendering geometries in Processing.'
6-
level: 'Intermediate'
2+
slug: "/tutorials/rendering"
3+
title: "Render Techniques"
4+
author: "Casey Reas and Ben Fry"
5+
intro: "Tools for rendering geometries in Processing."
6+
level: "Intermediate"
77
coverImage: rendering.png
8+
order: "24"
89
---
910

1011
<Note>

0 commit comments

Comments
 (0)