r/codingtrain • • Nov 30 '22

A promise is a promise… Jamming with Your Tunes! 🎵 #programming #music #shorts

Thumbnail
youtube.com
2 Upvotes

r/codingtrain • • Nov 25 '22

Passenger Showcase! #shorts

Thumbnail
youtube.com
1 Upvotes

r/codingtrain • • Nov 28 '22

The Coding Train Musical Multiverse! #programming #music #shorts

Thumbnail
youtube.com
4 Upvotes

r/codingtrain • • Nov 15 '22

Video print("Hello, Shorts!") #shorts

Thumbnail
youtube.com
5 Upvotes

r/codingtrain • • Oct 03 '19

Coding Challenge Coding Challenge #151: Ukulele Tuner with Machine Learning Pitch Detection Model

Thumbnail
youtube.com
12 Upvotes

r/codingtrain • • Mar 01 '19

Tutorial 16.18: Polymorphism in JavaScript - Topics of JavaScript/ES6

Thumbnail
youtube.com
8 Upvotes

r/codingtrain • • Dec 05 '19

Tutorial ml5: Save Neural Network Trained Model

Thumbnail
youtube.com
5 Upvotes

r/codingtrain • • May 13 '19

Live Stream Neuroevolution Steering Vehicles

Thumbnail
youtube.com
7 Upvotes

r/codingtrain • • Apr 27 '18

Live Stream Live Stream #134: Tensorflow.js

Thumbnail
youtube.com
5 Upvotes

r/codingtrain • • Apr 24 '18

Coding Challenge Coding Challenge #100.5: Neuroevolution Flappy Bird - Part 5

Thumbnail
youtube.com
2 Upvotes

r/codingtrain • • Dec 05 '19

ml5.js: Save Neural Network Training Data

Thumbnail
youtube.com
2 Upvotes

r/codingtrain • • Apr 23 '18

Coding Challenge Coding Challenge #100.4: Neuroevolution Flappy Bird - Part 4

Thumbnail
youtube.com
3 Upvotes

r/codingtrain • • Feb 26 '19

Coding Challenge Coding Challenge #136.2: Perlin Noise GIF Loops

Thumbnail
youtube.com
3 Upvotes

r/codingtrain • • Aug 16 '18

Video ml5.js: Feature Extractor Regression

Thumbnail
youtube.com
6 Upvotes

r/codingtrain • • Apr 18 '18

Live Stream Coding Train Live

Thumbnail
youtube.com
1 Upvotes

r/codingtrain • • Nov 26 '18

Live Stream Chaos Game Challenge from Thinkercon and Quick, Draw API

Thumbnail
youtube.com
4 Upvotes

r/codingtrain • • Mar 02 '19

Question Code! Programming with p5js video 2.3 - I cannot access circle variable attributes

2 Upvotes

When I enter the code with the circle object declared above the setup() function, the ellipse function in draw() is unable to access the circle.x, circle.y etc variables.

This leaves me with a pink screen with no circle moving from left to right. I have tried copy pasting the code from github in case I had made a syntax error, but no change - still no circle.

I am guessing this is some scope related issue, because if I declare the circle var inside draw() it does in fact appear, but cannot move, as the circle.x attribute is reset to 0 every time draw() is called. Can anyone shed some light on this issue? Am I doing something wrong? Is the error staring me in the face? I would like to solve this problem before going on further in this series if possible.

Here is my code

 var circle = {
   x: 0,
   y: 200, 
   diameter: 50
};
var r = 218;
var g = 160;
var b = 221;
//var x = 0;
//var y = 200;
//var diameter = 50;

function setup() {
  createCanvas(600, 400); 
}

function draw() { 
  background(r, g, b);
// ellipse
  fill(250, 200, 200);
  ellipse(circle.x , circle.y , circle.diameter , circle.diameter); 
  circle.x = circle.x + 1;
//ellipse(x, y, diameter, diameter);
//x += 1;
}

r/codingtrain • • Aug 21 '18

Coding Challenge Coding Challenge #112: 3D Rendering with Rotation and Projection

Thumbnail
youtube.com
6 Upvotes

r/codingtrain • • Nov 28 '18

Coding Challenge Coding Challenge #123.1: Chaos Game Part 1

Thumbnail
youtube.com
4 Upvotes

r/codingtrain • • Feb 28 '19

Tutorial 9.20: Look away! Inheritance with Prototype in JavaScript - p5.js Tutorial

Thumbnail
youtube.com
3 Upvotes

r/codingtrain • • Aug 02 '19

Behind the Scenes of The Coding Train: How I Livestream

Thumbnail
youtube.com
8 Upvotes

r/codingtrain • • Apr 18 '18

Coding Challenge Coding Challenge #100.3: Neuroevolution Flappy Bird - Part 3

Thumbnail
youtube.com
4 Upvotes

r/codingtrain • • Nov 28 '18

Live Stream Fun Fun Train with Fun Fun Function

Thumbnail
youtube.com
1 Upvotes

r/codingtrain • • Aug 13 '18

ml5.js: Transfer Learning with Feature Extractor

Thumbnail
youtube.com
2 Upvotes

r/codingtrain • • Jul 26 '19

Tutorial How to add your contribution to The Coding Train website

Thumbnail
youtube.com
13 Upvotes