from manim import *
import numpy as np
from numpy import array, pi, cos, sin
run_time = 1
data = [[1, 2], [3, 4]]

def dot(pos, **kwargs):
    return Dot(pos, **kwargs)
class N156_01(Scene):
    def construct(self):
        sc = self
        def initialize_points(self):
            for i in range(1, self.num_points + 1):
                t = i / (self.num_points + 1)
                self.points[i] = self.start_point + t * self.vector
                perpendicular = np.array([-self.direction[1], self.direction[0], 0])
                offset_strength = self.distance * 0.1
                random_offset = np.random.uniform(-offset_strength, offset_strength)
                self.points[i] += random_offset * perpendicular
        self.wait(0.5)
