+ 8

How to make black background with white dots scattered across (SVG preferred)

I need an example code of how to make a black background with small white dots(stars) scattered randomly across the screen. ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž ๐Ÿ’ŽSVG is preferred. ๐Ÿ’Ž ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž It should look similar to this: https://code.sololearn.com/Wqu7m22g8UP8/?ref=app

4th May 2018, 4:55 PM
๐ŸบMichael๐Ÿบ
๐ŸบMichael๐Ÿบ - avatar
1 Answer
+ 5
Easy way: 1) create an root svg 2) generate random position (x and y) 3) add an circle with x and y to root svg https://code.sololearn.com/W163yDUMbNx9/#
4th May 2018, 5:56 PM
KrOW
KrOW - avatar