File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 12691269 * var myDiv = createDiv("I like pandas.");
12701270 * myDiv.style("font-size", "18px");
12711271 * myDiv.style("color", "#ff0000");
1272+ * </code></div>
1273+ * <div><code class="norender">
12721274 * var col = color(25,23,200,50);
1273- * createButton('button').style("background-color", col);
1275+ * var button = createButton("button");
1276+ * button.style("background-color", col);
1277+ * button.position(10, 10);
1278+ * </code></div>
1279+ * <div><code class="norender">
1280+ * var myDiv = createDiv("I like lizards.");
1281+ * myDiv.style("position", 20, 20);
1282+ * myDiv.style("rotate", 45);
1283+ * </code></div>
1284+ * <div><code class="norender">
1285+ * var myDiv;
1286+ * function setup() {
1287+ * background(200);
1288+ * myDiv = createDiv("I like gray.");
1289+ * myDiv.position(20, 20);
1290+ * }
1291+ *
1292+ * function draw() {
1293+ * myDiv.style("font-size", mouseX+"px");
1294+ * }
12741295 * </code></div>
12751296 */
12761297 p5 . Element . prototype . style = function ( prop , val ) {
You can’t perform that action at this time.
0 commit comments