Animation of Lines with Square and Rectangle (Multi)

Draw lines y=x and y=-x. Create a slider say 'c'. Then insert any number of points on previous lines such as (c,c), (-c,c), (c,-c), (-c,-c), (c+1,c+1)..., Now draw perpendicular lines in each point to y=x and y=-x. Choose Dynamic color combination of Red, Green and Blue such as 2c, 3c, 4c respectively. Then animate slider 'c'.