[Solved]Am I missing something in my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

[Solved]Am I missing something in my code?

I am unable to figure out why stars are coming in half screen only. Please anyone figure it out for me. https://code.sololearn.com/Wje3t1Wz6l1R/?ref=app

31st Dec 2020, 4:45 AM
Tarun Kumar
Tarun Kumar - avatar
6 Answers
+ 2
Tarun Pandey nothing just re run the code after once editing If you make any edit then the canvas renders half at first run for you i don't know why but I myself noticed that if you run your code again then it renders full
31st Dec 2020, 6:27 AM
Shino
Shino - avatar
+ 3
Tarun Pandey Your code works perfectly fine for Android ...
31st Dec 2020, 4:48 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
That's a problem with canvas/js it renders half wrt screen height at first if you make any edit in code it will work fine if you re run the code :)
31st Dec 2020, 5:15 AM
Shino
Shino - avatar
+ 2
Atul🦚 What edit should I make?
31st Dec 2020, 6:23 AM
Tarun Kumar
Tarun Kumar - avatar
+ 2
Thanks Atul🦚 and everyone for your answers...
31st Dec 2020, 6:32 AM
Tarun Kumar
Tarun Kumar - avatar
0
Simba No not for me, whether it worked for you?
31st Dec 2020, 6:23 AM
Tarun Kumar
Tarun Kumar - avatar