Coding Art The Four Steps to Creative Programming with the Processing Language 1st Edition Yu Zhang Mathias Funk download
Coding Art The Four Steps to Creative Programming with the Processing Language 1st Edition Yu Zhang Mathias Funk download
https://textbookfull.com/product/coding-art-the-four-steps-to-
creative-programming-with-the-processing-language-1st-edition-yu-
zhang-mathias-funk/
https://textbookfull.com/product/coding-art-the-four-steps-to-
creative-programming-with-the-processing-language-yu-zhang/
https://textbookfull.com/product/coding-art-a-guide-to-unlocking-
your-creativity-with-the-processing-language-and-p5-js-in-four-
simple-steps-2nd-edition-mathias-funk/
https://textbookfull.com/product/learn-python-visually-creative-
coding-with-processing-py-1st-edition-tristan-bunn/
https://textbookfull.com/product/natural-language-processing-for-
electronic-design-automation-mathias-soeken/
Programming 101: The How and Why of Programming
Revealed Using the Processing Programming Language 1st
Edition Jeanine Meyer
https://textbookfull.com/product/programming-101-the-how-and-why-
of-programming-revealed-using-the-processing-programming-
language-1st-edition-jeanine-meyer/
https://textbookfull.com/product/the-art-of-coding-the-language-
of-drawing-graphics-and-animation-mohammad-majid-al-rifaie/
https://textbookfull.com/product/coding-for-beginners-or-how-to-
program-programs-with-programming-1st-edition-roger-engelbert/
https://textbookfull.com/product/security-in-network-coding-1st-
edition-peng-zhang/
Coding Art
The Four Steps to Creative Programming with the
Processing Language
1st ed.
Yu Zhang
Eindhoven, The Netherlands
Mathias Funk
Eindhoven, The Netherlands
Design Thinking
ISBN 978-1-4842-6263-4 e-ISBN 978-1-4842-6264-1
https://doi.org/10.1007/978-1-4842-6264-1
The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
Mathias Funk
is Associate Professor in the Future Everyday group in the Department
of Industrial Design at the Eindhoven University of Technology (TU/e).
He has a background in Computer Science and a PhD in Electrical
Engineering (from Eindhoven University of Technology). His research
interests include complex systems design, remote data collection,
systems for musical expression, and design tools such as domain-
specific languages and integrated development environments. In the
past, he has worked in research positions at ATR Japan, RWTH Aachen,
and he has been Visiting Researcher at Philips Consumer Lifestyle, the
Netherlands. He is also the co-founder of UXsuite, a high-tech spin-off
from Eindhoven University of Technology. He has years of experience in
software architecture and design, engineering of distributed systems,
and web technologies. Further areas of interest and practice are
domain-specific languages and code generation, sound and video
processing systems, and data and information visualization approaches.
He has been involved extensively in the business side of innovation, the
transfer of research to commercial products, and he loves to think
about a design’s real-world impact. As a teacher, he teaches various
technology-oriented courses in the Industrial Design curriculum about
designing with data and visualization approaches, systems design, and
technologies for connected products and systems. He is regularly
invited to give international workshops on large-scale interactive
systems, group music improvisation interfaces, and expressive
(musical) interaction. He has been an active musician for years and is
very interested in the intersection of music, art, and design in
particular.
About the Technical Reviewer
Bin Yu
received his MS in biomedical engineering from Northeastern
University, Shenyang, China, in 2012, and his PhD in industrial design
from the Eindhoven University of Technology, in 2018. He is currently a
Data Designer at Philips Design, the Netherlands, and specializes in
both human–computer interaction and data visualization.
© Yu Zhang, Mathias Funk 2021
Y. Zhang, M. Funk, Coding Art, Design Thinking
https://doi.org/10.1007/978-1-4842-6264-1_1
1. Introduction
Yu Zhang1 and Mathias Funk1
(1) Eindhoven, The Netherlands
1.2 Motivation
Every profession, every vocation, is about doing something difficult
with high quality, often using specific approaches or techniques. This
works for engineers, researchers, marketing, and doing business. For
creatives, the “difficult thing” is the invention of meaning and purpose
out of a large set of options, constraints, and relations. It is a very
human thing to create, which means we apply both our intuition and
our training and knowledge to a challenge. Creatives apply various
technologies in a creative process, and coding is a part of that. In this
book, the use of coding in creative work is based on the situation that
we try to construct meaning through understanding the logic and
structure of coding. We use coding as a creative tool rather than being
hardcore programmers or mere end users.
All source code listed in this book is written in the open source
software Processing. Processing itself is available from
https://processing.org, and we recommend that you install it
on your computer to get the most out of this book. Processing is a
medium for understanding the structure and logic of code. We will
explain this shortly. The code examples are available online from our
Processing library.2 Although it might be tempting to just download the
examples and play with them, we recommend typing them yourself (at
least some of them). This way, you will pick up the programming style
much faster and allow your muscle memory to support your learning.
And if you are lucky, you will make a few small mistakes that give you
surprising results.
Finally, we will address you, the reader, informally. Think of this
book as a conversation in your favorite café over coffee and your laptop
is right in front of you. Feel free to pause the conversation and dive into
a topic on your own, or explore the code of the examples, and then
resume to the next page. Let’s begin.
Footnotes
1 https://codingart-book.com/feedback
F
ifty years ago to-day—that is to say, on the 16th of October,
1846,—there occurred an event which marks as distinct a step
in human progress as almost any that could be named by the
erudite historian. I refer to the first demonstration of the possibility
of alleviating pain during surgical operations. Had this been the date
of a terrible battle, on land or sea, with mutual destruction of
thousands of human beings, the date itself would have been
signalized in literature and would have been impressed upon the
memory of every schoolboy, while the names of the great military
murderers who commanded the opposing armies would have been
emblasoned upon monuments and the pages of history. But this
event was merely the conquest of pain and the alleviation of human
suffering, and no one who has ever served his race by contributing
to either of these results has been remembered beyond his own
generation or outside the circle of his immediate influence. Such is
the irony of fate. The world erects imposing monuments or builds
tombs, like that of Napoleon, to the memory of those who have
been the greatest destroyers of their race; and so Cæsar, Hannibal,
Genghis Khan, Richard the Lion-hearted, Gustavus Vasa, Napoleon
and hundreds of other great military murderers have received vastly
more attention, because of their race-destroying propensities and
abilities, than if they had ever fulfilled fate in any other capacity. But
the men like Sir Spencer Wells, who has added his 40,000 years of
life to the total of human longevity, or like Sir Joseph Lister, who has
shown our profession how to conquer that arch enemy of time past,
surgical sepsis, or like Morton, who first publicly demonstrated how
to bring on a safe and temporary condition of insensibility to pain,
are men more worthy in our eyes of lasting fame, and much greater
heroes of their times, and of all time,—yet are practically unknown
to the world at large, to whom they have ministered in such an
unmistakable and superior way.
This much, then, by way of preface and reason for commemorating
in this public way the semi-centennial of this really great event.
Because the world does scant honor to these men we should be all
the more mindful of their services, and all the more insistent upon
their public recognition.
Of all the achievements of the Anglo-Saxon race, I hold it true that
the two greatest and most beneficent were the discovery of ether
and the introduction of antiseptic methods,—one of which we owe to
an American, the other to a Briton.
The production of deep sleep and the usual accompanying abolition
of pain have been subjects which have ever appeared, in some form,
in myth or fable, and to which poets of all times have alluded,
usually with poetic license. One of the most popular of these fables
connects the famous oracle of Apollo, at Delphi, whence proceeded
mysterious utterances and inchoate sounds, with convulsions,
delirium and insensibility upon the part of those who approached it.
To what extent there is a basis of fact in this tradition can never be
explained, but it is not improbable from what we now know of
hypnotic influence.
From all time it has been known that many different plants and
herbs contained principles which were narcotic, stupefying or
intoxicating. These properties have especially been ascribed to the
juices of the poppy, the deadly nightshade, henbane, the Indian
hemp and the mandrágora, which for us now is the true mandrake,
whose juice has long been known as possessing soporific influence.
Ulysses and his companions succumbed to the influence of
Nepenthe; and, nineteen hundred years ago, when crucifixion was a
common punishment of malefactors, it was customary to assuage
their last hours upon the cross by a draught of vinegar with gall or
myrrh, which had real or supposititious narcotic properties. Even the
prophet Amos, seven hundred years before the time of Christ, spoke
of such a mixture as this as "the wine of the condemned," for he
says, in rehearsing the iniquities of Israel by which they had incurred
the anger of the Almighty: "And they lay themselves down upon the
clothes laid to pledge by every altar, and they drink the wine of the
condemned in the house of their God," (Chap. II, verse 8), meaning
thereby undoubtedly that these people, in their completely
demoralized condition, drank the soporific draught kept for criminals.
Herodotus mentions a habit of the Scythians, who employed a vapor
generated from the seed of the hemp for the purpose of producing
an intoxication by inhalation. Narcotic lotions were also used for
bathing the people about to be operated upon. Pliny, who perished
at the destruction of Herculaneum, A. D. 79, testified to the soporific
power of the preparations made from mandrágora upon the faculties
of those who drank it. He says: "It is drunk against serpents and
before cuttings and puncturings, lest they should be felt." He also
describes the indifference to pain produced by drinking a vinous
infusion of the seeds of eruca, called by us the rocket, upon
criminals about to undergo punishment. Dioscorides relates of
mandrágora that "some boil down the roots in wine to a third part,
and preserve the juice thus procured, and give one cyathus of this to
cause the insensibility of those who are about to be cut or
cauterized." One of his later commentators also states that wine in
which mandrágora roots have been steeped "does bring on sleep
and appease pain, so that it is given to those who are to be cut,
sawed or burnt in any parts of their body, that they may not
perceive pain." Apuleius, about a century later than Pliny, advised
the use of the same preparation. The Chinese, in the earlier part of
the century, gave patients preparations of hemp, by which they
became completely insensible and were operated upon in many
ways. This hemp is the cannabis Indica which furnishes the
Hasheesh of the Orient and the intoxicating and deliriating Bhang,
about which travelers in the East used to write so much. In Barbara,
for instance, it was always taken, if possible, by criminals
condemned to suffer mutilation or death.
According to the testimony of medieval writers, knowledge of these
narcotic drugs was practically applied during the last of the
Crusades, the probability being that the agent principally employed
was this same hasheesh. Hugo di Lucca gave a complete formula for
the preparation of the mixture, with which a sponge was to be
saturated, dried, and then, when wanted, was to be soaked in warm
water, and afterward applied to the nostrils, until he who was to be
operated upon had fallen asleep; after which he was aroused with
the vapor of vinegar.
Strangely enough, the numerous means of attaining insensibility,
then more or less known to the common people, and especially to
criminals and executioners, do not appear to have found favor for
use during operations. Whether this was due to unpleasant after-
effects, or from what reason, we are not informed. Only one or two
surgical writers beside Guy de Chauliac (1498) refer in their works to
agents for relief of pain, and then almost always to their unpleasant
effects, the danger of producing asphyxiation, and the like. Ambrose
Paré wrote that preparations of mandrágora were formerly used to
avert pain. In 1579, an English surgeon, Bulleyn, affirmed that it was
possible to put the patient into an anaesthetic state during the
operation of lithotomy, but spoke of it as a "terrible dream." One
Meisner spoke of a secret remedy used by Weiss, about the end of
the XVII Century, upon Augustus II., king of Poland, who produced
therewith such perfect insensibility to pain that an amputation of the
royal foot was made without suffering, even without royal consent.
The advice which the Friar gave Juliet regarding the distilled liquor
which she was to drink, and which should presently throw her into a
cold and drowsy humor, although a poetic generality, is
Shakespeare's recognition of a popular belief. Middleton, a tragic
writer of Shakespeare's day, in his tragedy known as "Women
beware Women," refers in the following terms to anesthesia in
surgery:
"I'll imitate the pities of old surgeons
To this lost limb, who, ere they show their art,
Cast one asleep; then cut the diseased part."
Of course, of all the narcotics in use by educated men, opium has
been, since its discovery and introduction, the most popular and
generally used. Surgeons of the last century were accustomed to
administer large doses of it shortly before an operation, which, if
serious, was rarely performed until the opiate effect was manifested.
Still, in view of its many unpleasant after-effects, its use was
restricted, so far as possible, to extreme cases.
Baron Larrey, noticing the benumbing effect of cold upon wounded
soldiers, suggested its introduction for anesthetic purposes, and
Arnott, of London, systematized the practice, by recommending a
freezing mixture of ice and salt to be laid directly upon the part to be
cut. Other surgeons were accustomed to put their patients into a
condition of either alcoholic intoxication or alcoholic stupor. Long-
continued compression of a part was also practised by some, by
which a limb could, as we say, be made to "go to sleep." A few
others recommended to produce faintness by excessive bleeding. It
was in 1776 that the arch-fraud Mesmer entered Paris and began to
initiate people into the mysteries of what he called animal
magnetism, which was soon named mesmerism, after him.
Thoroughly degenerate and disreputable as he was, he nevertheless
taught people some new truths, which many of them learned to
their sorrow, while in the hospitals of France and England severe
operations were performed upon patients thrown into a mesmeric
trance, and without suffering upon their part. That a scientific study
of the mesmeric phenomena has occupied the attention of eminent
men in recent years, and that hypnotism is now recognized as an
agent often capable of producing insensibility to pain is simply true,
as these facts have been turned to the real benefit of man by
scientific students rather than by quacks and charlatans.
In 1799, Sir Humphrey Davey, being at that time an assistant in the
private hospital of Dr. Beddoes, which was established for treatment
of disease by inhalation of gases, and which he called The
Pneumatic Institute, began experimenting with nitrous oxide gas,
and noticed its exhilarating and intoxicating effects; also the relief
from pain which it afforded in headache and toothache. As the
results of his reports, a knowledge of its properties was diffused all
over the world, and it was utilized both for amusement and
exhibition purposes. Davey even wrote as follows of this gas:
As nitrous oxide, in its extensive operation, appears capable of
destroying physical pain, it may probably be used with advantage
during surgical operations in which no great effusion of blood takes
place.
It is not at all unlikely that Colton and Wells, to be soon referred to,
derived encouragement, if not incentive, from these statements of
Davey. Nevertheless, Velpeau, perhaps the greatest French surgeon
of his day, wrote in 1839, that "to escape pain in surgical operations
is a chimera which we are not permitted to look for in our day."
Sulphuric ether, as a chemical compound, was known from the XIII
Century, for reference was made to it by Raymond Lully. It was first
spoken of by the name of ether by Godfrey, in the Transactions of
the London Royal Society, in 1730, while Isaac Newton spoke of it as
the ethereal spirits of wine. During all of the previous century it was
known as a drug, and allusion to its inhalation was made in 1795 in
a pamphlet, probably by Pearson. Beddoes, in 1796, stated that "it
gives almost immediate relief, both to the oppression and pain in the
chest, in cases of pectoral catarrh." In 1815, Nysten spoke of
inhalation of ether as being common treatment for mitigating pain in
colic, and in 1816 he described an inhaler for its use. As early as
1812 it was often inhaled for experiment or amusement, and so-
called "ether frolics" were common in various parts of the country.
This was true, particularly for our purpose, of the students of
Cambridge, and of the common people in Georgia in the vicinity of
Long's home. It probably is for this reason that a host of claimants
for the honor of the discovery appeared so soon as the true
anesthetic properties of the drug were demonstrated.
There probably is every reason to think that, either by accident or
design, a condition of greater or less insensibility to pain had been
produced between 1820 and 1846, by a number of different people,
educated and ignorant, but that no one had the originality or the
hardihood to push these investigations to the point of determining
the real usefulness of ether. This was partly from ignorance, partly
from fear, and partly because of the generally accepted impossibility
of producing safe insensibility to pain. So, while independent claims
sprang up from various sources, made by aspirants for honors in this
direction, it is undoubtedly as properly due to Morton to credit him
with the introduction of this agent as an anesthetic as to credit
Columbus with the discovery of the New World, in spite of certain
evidences that some portions of the American continent had been
touched upon by adventurous voyagers before Columbus ever saw
it.
The noun "anesthesia" and the adjective "anesthetic" were
suggestions of Dr. Oliver Wendell Holmes, who early proposed their
use to Dr. Morton in a letter which is still preserved. He suggests
them with becoming modesty, advises Dr. Morton to consult others
before adopting them, but, nevertheless, states that he thinks them
apt for that purpose. The word anesthesia, therefore, is just about of
the same age as the condition itself, and it, too, deserves
commemoration upon this occasion.
As one reads the history of anesthesia, which has been written up by
a number of different authors, each, for the main part, having some
particular object in view, or some particular friend whose claims he
wishes especially to advocate, he may find mentioned at least a
dozen different names of men who are supposed to have had more
or less to do with this eventful discovery. But, for all practical
purposes, one may reduce the list of claimants for the honor to four
men, each of whose claims I propose to briefly discuss. These men
were Long, Wells, Jackson and Morton. Of these four, two were
dentists and two practising physicians, to whom fate seems to have
been unkind, as it often is, since three of them at least died a violent
or distressing death, while the fourth lived to a ripe old age,
harassed at almost every turn by those who sought to decry his
reputation or injure his fortunes.
Crawford W. Long was born in Danielsville, Ga., in 1816. In 1839 he
graduated from the Medical Department of the University of
Pennsylvania. In the part of the country where Long settled it was a
quite common occurrence to have what were known as "ether
frolics" at social gatherings, ether being administered to various
persons to the point of exhilaration, which in some instances was
practically uncontrollable. Long's friends claim that he had often
noticed that when the ether effect was pushed to this extent the
subjects of the frolic became oblivious to minor injuries, and that
these facts, often noticed, suggested to his mind the use of ether in
surgical operations. There is good evidence to show that Long first
administered ether for this purpose on the 30th of March, 1842, and
that on June 6th he repeated this performance upon the same
patient; that in July he amputated a toe for a negro boy, but that the
fourth operation was not performed until September of 1843. In
1844 a young man, named Wilhite, who had helped to put a colored
boy to sleep at an ether frolic in 1839, became a student of Dr.
Long's, to whom Long related his previous experiences. Long had
never heard of Wilhite's episode, but had only one opportunity, in
1845, to try it, again upon a negro boy. Long lived at such a distance
from railroad communication (130 miles) as to have few advantages,
either of practice, observation or access to literature. Long made no
public mention of his use of ether until 1849, when he published An
Account of the First Use of Sulphuric Ether by Inhalation as an
Anesthetic in Surgical Operations, stating that he first read of
Morton's experiments in an editorial in the Medical Examiner of
December, 1846, and again later; on reading which articles he
determined to wait before publishing any account of his own
discovery, to see whether anyone else would present a prior claim.
No special attention was paid to Long's article, as it seemed that he
merely desired to place himself on record. There is little, probably no
reasonable doubt as to Long's priority in the use of ether as an
anesthetic, although it is very doubtful if he carried it, at least at
first, to its full extent. Nevertheless Long was an isolated observer,
working entirely by himself, having certainly no opportunity and
apparently little ambition to announce his discovery, and having no
share in the events by which the value of ether was made known to
the world. Long's strongest advocate was the late Dr. Marion Sims,
who made a strong plea for his friend, and yet was not able to
successfully establish anything more than has just been stated. As
Dr. Morton's son, Dr. W. J. Morton, of New York, says, when writing
of his father's claim: "Men used steam to propel boats before Fuller;
electricity to convey messages before Morse; vaccine virus to avert
smallpox before Jenner; and ether to annul pain before Morton."
But these men are not generally credited with their introduction by
the world at large and, he argues, neither should Long or the other
contestants be given the credit due Morton himself. In fact, Long
writes of his own work that the result of his second experiment was
such as to make him conclude that ether would only be applicable in
cases where its effects could be kept up by constant use; in other
words, that the anesthetic state was of such short duration that it
was to him most unsatisfactory. Sir James Paget has summed up the
relative claims of our four contestants in an article entitled Escape
from Pain, published in the Nineteenth Century for December, 1879.
He says:
"While Long waited, and Wells turned back, and Jackson was
thinking, and those to whom they had talked were neither acting nor
thinking, Morton, the practical man, went to work and worked
resolutely. He gave ether successfully in severe surgical operations;
he loudly proclaimed his deeds and he compelled mankind to hear
him."
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com