Search.setIndex({"docnames": ["conditionals_loops", "index", "language", "pixels", "shapes", "snap_account", "turtles", "twine"], "filenames": ["conditionals_loops.rst", "index.rst", "language.rst", "pixels.rst", "shapes.rst", "snap_account.rst", "turtles.rst", "twine.rst"], "titles": ["Chapter 5: Conditionals and Loops", "EBook for \u201cComputing for Creative Expression\u201d", "Chapter 4: Language", "Chapter 2: Pixels", "Chapter 1: Shapes", "Making a Snap Account", "Chapter 3: Turtles", "Starter Guide: Building a Game in Twine"], "terms": {"conditionals_loop": 0, "written": 0, "chloe": [0, 4, 6], "nguyen": [0, 6], "In": [0, 3, 4, 5, 6], "previou": 0, "you": [0, 2, 3, 4, 5, 6, 7], "have": [0, 2, 3, 4, 6], "explor": [0, 6], "how": [0, 2, 3, 4, 6, 7], "map": 0, "from": [0, 2, 3, 6], "code": [0, 2, 3, 4, 6, 7], "process": [0, 6], "sql": 0, "html": [0, 4], "idea": 0, "i": [0, 1, 2, 3, 4, 5, 6], "make": [0, 1, 2, 3, 4, 6], "sens": [0, 4], "textual": 0, "program": [0, 2, 6], "languag": [0, 1, 6], "base": [0, 3, 6], "what": [0, 1, 2, 3, 4, 6], "know": [0, 4, 6], "thi": [0, 2, 3, 4, 5, 6, 7], "we": [0, 2, 3, 4, 5, 6], "revers": [0, 3], "ar": [0, 2, 3, 4, 6], "go": [0, 3, 4, 6], "start": [0, 1, 2, 3, 4, 5], "two": [0, 3, 4, 7], "kei": 0, "block": [0, 2, 3, 4, 6, 7], "us": [0, 1, 3, 4, 5], "both": [0, 3, 6], "provid": [0, 5], "also": [0, 2, 3], "known": [0, 4], "claus": 0, "them": [0, 2, 6], "all": [0, 2, 3, 4, 5], "time": [0, 4, 6], "express": 0, "one": [0, 2, 3, 4, 6], "thing": [0, 2, 3], "depend": 0, "someth": [0, 3], "els": [0, 3], "transfer": 0, "let": [0, 2, 3, 6], "": [0, 2, 3, 4, 6, 7], "statement": [0, 3, 4, 6], "If": [0, 2, 3], "ask": [0, 2, 5, 7], "someon": 0, "dai": 0, "your": [0, 4, 5, 7], "answer": [0, 2, 3, 4], "respons": [0, 2], "wouldn": 0, "t": [0, 2, 7], "sai": [0, 2, 4, 6], "yai": 0, "told": [0, 6], "thei": [0, 3, 4], "had": 0, "bad": 0, "hopefulli": 0, "would": [0, 2, 3], "onli": [0, 3, 4, 6], "good": 0, "Then": [0, 2, 3, 5, 6, 7], "check": [0, 2, 5, 6], "did": [0, 2, 4], "find": [0, 2, 4, 7], "give": [0, 7], "yourself": [0, 4], "option": [0, 2, 4], "which": [0, 2, 3, 4, 6], "could": [0, 2], "posit": [0, 3, 4], "e": 0, "g": 0, "oh": 0, "least": 0, "beat": 0, "osu": 0, "hockei": 0, "final": 0, "so": [0, 2, 4], "catch": 0, "ani": [0, 6, 7], "other": [0, 3, 6], "here": [0, 2, 3, 4, 5, 6], "simpl": [0, 2, 4, 6, 7], "dialog": 0, "project": [0, 2, 4, 5], "show": 0, "logic": [0, 7], "abov": [0, 2, 3, 4], "look": [0, 3, 4, 6], "when": [0, 3, 4, 7], "run": [0, 2, 3, 4, 6], "below": [0, 2, 4, 6], "doe": [0, 2, 3, 6], "same": [0, 2, 3, 6], "click": [0, 2, 4, 5, 6, 7], "convers": 0, "syntax": 0, "first": [0, 2, 4, 6, 7], "statment": 0, "see": [0, 2, 3, 4, 6], "word": [0, 2], "wa": [0, 2, 4, 6], "input": [0, 2], "user": [0, 2], "elif": 0, "stand": 0, "long": 0, "found": [0, 2], "tell": [0, 2, 3, 6, 7], "comput": [0, 3, 6], "ha": [0, 4, 6], "respond": [0, 2], "q": [0, 2, 3, 4, 6], "3": [0, 1, 2], "get": [0, 1, 3, 4, 5, 6], "print": [0, 2], "It": [0, 3, 4, 5, 6], "4": [0, 1, 3, 4], "do": [0, 2, 3, 4, 6], "sign": [0, 5], "up": [0, 2, 4, 5], "new": [0, 7], "account": [0, 1], "enter": 0, "birthdai": 0, "some": [0, 3], "websit": 0, "put": [0, 2, 6], "number": [0, 3, 4, 6], "month": [0, 5], "drop": 0, "down": [0, 4, 6], "menu": 0, "still": [0, 4, 6], "calend": 0, "convert": 0, "take": [0, 2, 3, 6, 7], "birth": [0, 5], "note": 0, "instead": 0, "an": [0, 2, 3, 4, 5, 6, 7], "just": [0, 2, 4, 6], "insid": [0, 3, 4], "work": [0, 3, 4, 6], "wai": [0, 2, 4], "befor": 0, "second": [0, 4], "third": 0, "try": [0, 2, 3, 4, 6], "out": [0, 2, 3, 6], "question": [0, 2, 3, 4], "about": [0, 2, 3, 4, 6], "6": [0, 2, 4, 6], "output": [0, 4, 6], "14": [0, 3, 6], "7": [0, 2, 4], "why": [0, 3, 4, 6], "think": [0, 2, 4, 6], "programm": 0, "valid": 0, "8": [0, 2, 3, 4, 6], "chang": [0, 2, 3, 6], "were": [0, 4], "9": [0, 3, 4, 6], "happen": [0, 3, 4, 6], "type": [0, 2, 7], "name": [0, 2, 6, 7], "like": [0, 2, 3, 4, 6], "septemb": 0, "error": 0, "exactli": 0, "sound": 0, "again": [0, 6], "There": [0, 4], "sever": [0, 2], "differ": [0, 2, 3, 4, 6], "focu": [0, 2, 6], "A": [0, 1, 2], "mani": [0, 6], "For": [0, 5], "imagin": 0, "circl": 0, "move": [0, 4, 6], "few": 0, "step": 0, "forward": [0, 6], "turn": [0, 4, 6], "And": 0, "repeat": [0, 4], "bunch": 0, "degre": 0, "everi": 0, "360": [0, 4], "right": [0, 3, 6, 7], "triangl": [0, 1, 4], "letter": 0, "appl": 0, "dinosaur": 0, "count": 0, "length": 0, "charact": 0, "interior": [0, 6], "j": [0, 4, 6], "valu": [0, 3, 6], "write": [0, 7], "through": [0, 7], "refer": [0, 4], "screen": [0, 4, 6, 7], "simplifi": 0, "now": [0, 3, 4], "exact": [0, 3], "yet": 0, "walk": 0, "around": 0, "line": [0, 1, 2, 3, 6], "rang": [0, 3], "creat": [0, 1, 3, 4, 5, 6, 7], "goe": [0, 2, 4], "whatev": 0, "after": [0, 2, 7], "colon": 0, "variabl": [0, 2, 3, 4, 6, 7], "equal": [0, 3], "0": [0, 3, 4, 6], "next": [0, 2, 4, 7], "until": 0, "greater": [0, 3], "With": 0, "stop": 0, "That": [0, 2, 3], "mean": [0, 3], "Or": 0, "gave": 0, "u": [0, 2, 6], "phrase": 0, "p": [0, 3], "l": 0, "11": [0, 2, 4, 6], "match": [0, 3], "our": [0, 2], "hint": 0, "onc": [0, 4], "complet": 0, "twice": 0, "13": [0, 2, 3, 4], "belong": 0, "15": [0, 3, 6], "want": [0, 2, 3, 4], "backward": 0, "order": [0, 4, 5, 6], "replac": [0, 7], "end": [0, 3], "index": [1, 2], "chapter": 1, "1": 1, "shape": [1, 3], "section": 1, "rilei": 1, "quilt": 1, "2": 1, "piet": 1, "mondrian": 1, "cors": 1, "grai": 1, "pixel": [1, 4], "invert": 1, "sheep": 1, "poster": 1, "big": 1, "ben": 1, "grayscal": 1, "turtl": 1, "draw": [1, 4], "star": 1, "squar": [1, 2, 4, 7], "spiral": 1, "gener": [1, 3, 4, 6], "sentenc": 1, "littl": [1, 4, 6], "python": [1, 6], "chatbot": 1, "5": [1, 3, 4, 6], "condit": [1, 5, 7], "loop": [1, 2, 3, 4, 6], "snap": [1, 2, 6], "starter": 1, "guid": 1, "build": 1, "game": 1, "twine": 1, "command": 1, "help": 1, "resourc": 1, "class": [2, 3, 4], "alreadi": 2, "One": [2, 4, 6], "model": 2, "pattern": [2, 6], "dictionari": 2, "part": [2, 3, 4], "done": 2, "random": [2, 4, 6], "between": [2, 6], "noun": 2, "bracket": [2, 7], "guess": [2, 6], "adject": 2, "hold": 2, "snippet": 2, "follow": [2, 3], "NOT": 2, "produc": 2, "possibl": [2, 3], "curiou": 2, "boat": 2, "float": 2, "built": 2, "exampl": [2, 3, 4, 6], "veri": [2, 4], "more": [2, 3, 7], "sophist": 2, "than": [2, 3], "can": [2, 4, 6, 7], "pick": 2, "equival": 2, "randomli": 2, "saw": [2, 3, 4], "charla": 2, "bot": 2, "runeston": 2, "ebook": 2, "receiv": 2, "inputsent": 2, "repres": [2, 4], "press": [2, 3], "chat": 2, "recogn": 2, "decid": 2, "split": 2, "break": 2, "distinct": 2, "contain": 2, "function": [2, 3, 4, 6], "where": [2, 4, 5, 6], "appear": [2, 6], "nameindex": 2, "yournam": 2, "greet": 2, "specif": 2, "rememb": 2, "often": 2, "isn": 2, "those": [2, 3], "basic": [2, 4], "hi": [2, 4], "set": [2, 3, 4, 5, 6, 7], "back": 2, "10": [2, 3, 4, 6], "wordsinsent": 2, "12": [2, 4], "re": [2, 3, 4, 5, 7], "welcom": 2, "anyth": 2, "purpos": 2, "track": [2, 4], "negat": 3, "color": [3, 4, 6], "pictur": [3, 4], "As": 3, "talk": 3, "each": [3, 4, 6, 7], "compon": 3, "channel": 3, "red": [3, 4, 6], "green": [3, 6], "blue": [3, 4, 6], "encod": 3, "singl": 3, "byte": 3, "255": [3, 6], "main": [3, 4], "bodi": [3, 4], "select": [3, 4, 6, 7], "certain": 3, "To": [3, 5, 7], "achiev": 3, "minu": 3, "replic": 3, "manipul": 3, "imag": [3, 4, 7], "img": [3, 7], "jpg": 3, "file": [3, 4], "invis": 3, "drag": [3, 4, 6], "costum": 3, "tab": 3, "getpixel": 3, "list": 3, "getr": 3, "subtract": 3, "current": 3, "updatepixel": 3, "itself": 3, "newli": 3, "last": 3, "browser": [3, 7], "window": 3, "120": 3, "ye": [3, 6], "total": 3, "fair": 3, "actual": [3, 4], "three": [3, 4, 6], "reduc": 3, "most": 3, "256": 3, "well": 3, "over": 3, "million": 3, "80": 3, "160": 3, "100": [3, 4, 6], "50": 3, "limit": 3, "whole": 3, "paint": 3, "usual": 3, "hand": [3, 4], "thu": 3, "avail": 3, "either": 3, "path": [3, 7], "taken": 3, "less": 3, "alwai": 3, "notic": 3, "indent": 3, "critic": 3, "figur": 3, "setr": 3, "becaus": 3, "updat": 3, "outsid": 3, "easier": 3, "pleas": [3, 5], "d": 3, "add": [3, 4, 7], "weird": [3, 4], "larger": 3, "otherwis": 3, "effect": 3, "side": [3, 4, 6, 7], "choic": [3, 7], "x": [3, 4], "left": [3, 4, 6, 7], "center": [3, 7], "neg": 3, "leftsid": 3, "averag": 3, "lumin": 3, "origin": [3, 6], "lum": 3, "store": [3, 4], "feel": [3, 4], "free": 3, "true": 3, "delet": 3, "setblu": 3, "slant": 4, "tile": 4, "x1": 4, "y1": 4, "lower": 4, "row": 4, "within": 4, "mai": 4, "wonder": 4, "y": 4, "sprite": [4, 6], "easili": 4, "lot": 4, "pen": [4, 6], "hue": [4, 6], "four": [4, 6], "bit": [4, 6], "bottom": [4, 6], "fill": 4, "40": 4, "pull": 4, "off": 4, "extra": [4, 6], "gone": 4, "p5": [4, 6], "javascript": [4, 6, 7], "librari": [4, 6], "render": 4, "button": [4, 7], "ll": [4, 5, 6], "drew": 4, "column": [4, 6], "keep": 4, "math": 4, "quad": 4, "dutch": 4, "artist": 4, "abstract": 4, "art": 4, "geometr": 4, "primari": 4, "plai": 4, "download": 4, "x2": 4, "These": 4, "rectangl": 4, "script": 4, "black": [4, 6], "fairli": 4, "thick": 4, "width": 4, "custom": 4, "method": 4, "yellow": 4, "begin": [4, 7], "page": [4, 5], "setup": [4, 6], "piec": 4, "being": 4, "anim": 4, "size": [4, 6], "strokeweight": 4, "closest": 4, "simplest": 4, "simpli": 4, "mod": 4, "test": 4, "even": 4, "odd": 4, "drawn": 4, "might": [4, 6], "36": [4, 6], "9230792": 4, "magic": 4, "who": 4, "wrote": 4, "stage": [4, 6], "dimens": 4, "480x360": 4, "480": 4, "across": 4, "fit": 4, "space": 4, "determin": 4, "92307692": 4, "whether": 4, "seen": 4, "probabl": 4, "curli": 4, "brace": 4, "rect": 4, "500": 4, "parenthes": 4, "separ": 4, "comma": 4, "snap_account": 5, "cours": 5, "save": 5, "need": [5, 6, 7], "navig": 5, "usernam": 5, "password": 5, "verifi": 5, "ag": 5, "email": 5, "address": [5, 7], "uniqnam": 5, "um": 5, "without": 5, "umich": 5, "edu": 5, "recommend": 5, "box": 5, "agre": 5, "term": 5, "The": 6, "much": 6, "older": 6, "tool": [6, 7], "1960": 6, "call": 6, "logo": 6, "robot": 6, "grahic": 6, "seymour": 6, "papert": 6, "inventor": 6, "earli": 6, "been": 6, "port": 6, "todai": 6, "excel": 6, "place": 6, "thank": 6, "version": 6, "pretti": 6, "close": 6, "import": 6, "ignor": 6, "stuff": 6, "requir": 6, "canva": 6, "background": 6, "five": 6, "rest": 6, "expect": 6, "interest": 6, "speed": 6, "okai": 6, "bug": 6, "ahead": 6, "role": 6, "outer": 6, "72": 6, "return": 6, "16": 6, "respect": 6, "scrambl": 6, "wrong": 6, "open": 7, "sourc": 7, "interact": 7, "nonlinear": 7, "stori": 7, "don": 7, "extend": 7, "css": 7, "readi": 7, "visit": 7, "twineri": 7, "org": 7, "me": 7, "prompt": 7, "read": 7, "titl": 7, "doubl": 7, "untitl": 7, "passag": 7, "player": 7, "src": 7, "url": 7, "link": 7, "copi": 7, "past": 7, "spot": 7, "adventur": 7, "video": 7}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"chapter": [0, 2, 3, 4, 6], "5": 0, "condit": 0, "loop": 0, "section": [0, 2, 3, 4, 6, 7], "1": [0, 2, 3, 4, 6, 7], "The": [0, 2, 3, 4], "snap": [0, 3, 4, 5], "version": [0, 2, 3, 4], "python": [0, 2, 3], "anoth": 0, "exampl": 0, "2": [0, 2, 3, 4, 6, 7], "ebook": 1, "comput": 1, "creativ": 1, "express": 1, "4": [2, 6, 7], "languag": 2, "gener": 2, "sentenc": 2, "v1": 2, "v2": 2, "creat": 2, "littl": 2, "chatbot": 2, "pixel": 3, "invert": 3, "sheep": 3, "explain": [3, 4], "program": [3, 4], "poster": 3, "big": 3, "ben": 3, "3": [3, 4, 6, 7], "grayscal": 3, "shape": 4, "rilei": 4, "quilt": 4, "process": 4, "piet": 4, "mondrian": 4, "cors": 4, "grai": 4, "line": 4, "make": 5, "account": 5, "turtl": 6, "draw": 6, "star": 6, "squar": 6, "A": 6, "spiral": 6, "triangl": 6, "starter": 7, "guid": 7, "build": 7, "game": 7, "twine": 7, "what": 7, "i": 7, "get": 7, "start": 7, "us": 7, "command": 7, "help": 7, "resourc": 7}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Chapter 5: Conditionals and Loops": [[0, "chapter-5-conditionals-and-loops"]], "Section 1: Conditionals": [[0, "section-1-conditionals"]], "The Snap Version": [[0, "the-snap-version"], [0, "id1"]], "The Python Version": [[0, "the-python-version"], [0, "id2"], [3, "the-python-version"], [3, "id2"], [3, "id4"]], "Another Example": [[0, "another-example"]], "Section 2: Loops": [[0, "section-2-loops"]], "EBook for \u201cComputing for Creative Expression\u201d": [[1, "ebook-for-computing-for-creative-expression"]], "Chapter 4: Language": [[2, "chapter-4-language"]], "Section 1: Generating Sentences": [[2, "section-1-generating-sentences"]], "The Python Version V1": [[2, "the-python-version-v1"]], "The Python Version V2": [[2, "the-python-version-v2"]], "Section 2: Creating a little Python chatbot": [[2, "section-2-creating-a-little-python-chatbot"]], "Chapter 2: Pixels": [[3, "chapter-2-pixels"]], "Section 1: Inverted Sheep": [[3, "section-1-inverted-sheep"]], "Explaining the Snap program": [[3, "explaining-the-snap-program"], [3, "id1"], [3, "id3"], [4, "explaining-the-snap-program"], [4, "id1"], [4, "id4"]], "Section 2: Posterize Big Ben": [[3, "section-2-posterize-big-ben"]], "Section 3: Grayscale and Invert": [[3, "section-3-grayscale-and-invert"]], "Chapter 1: Shapes": [[4, "chapter-1-shapes"]], "Section 1: Riley Quilt": [[4, "section-1-riley-quilt"]], "The Processing Version": [[4, "the-processing-version"], [4, "id2"], [4, "id5"]], "Section 2: Piet Mondrian": [[4, "section-2-piet-mondrian"]], "Section 3: Corse Gray Lines": [[4, "section-3-corse-gray-lines"]], "Making a Snap Account": [[5, "making-a-snap-account"]], "Chapter 3: Turtles": [[6, "chapter-3-turtles"]], "Section 1: Draw a Star": [[6, "section-1-draw-a-star"]], "Section 2: Draw Squares": [[6, "section-2-draw-squares"]], "Section 3: Draw A Spiral": [[6, "section-3-draw-a-spiral"]], "Section 4: Draw Triangles": [[6, "section-4-draw-triangles"]], "Starter Guide: Building a Game in Twine": [[7, "starter-guide-building-a-game-in-twine"]], "SECTION 1: What is Twine?": [[7, "section-1-what-is-twine"]], "SECTION 2: Getting Started with Twine": [[7, "section-2-getting-started-with-twine"]], "SECTION 3: Useful Commands": [[7, "section-3-useful-commands"]], "SECTION 4: Helpful Resources": [[7, "section-4-helpful-resources"]]}, "indexentries": {}})