setVectors() {
    let i, j;
    const length1 = this.imageData.width;
    const length2 = this.imageData.height;

    for (i = 0; i < length1; i += this.d) {
      for (j = 0; j < length2; j += this.d) {
        let index = ((j >> 0) * length1 + (i >> 0)) * 4;

        if (this.imageData.data[index + 3] > 0) {
          this.vectors.push({ x: i + this.x, y: j + this.y });
        }
      }
    }

    return this.vector;
  }
Sets up vectors based on the image data.
@returns {Object} The vector object.