INNER CODE UNIT · Kotlin

currentAngle

fjossinet/RNArtist · src/main/kotlin/RNArtist.kt:1111

                                    currentAngle = currentAngle % 360
                                    rt.play()
                                    val t = Theme()
                                    val lineWidth = when (currentAngle) {
                                        0.0 -> 0.0
                                        30.0, -330.0 -> 0.5
                                        60.0, -300.0 -> 1.0
                                        90.0, -270.0 -> 2.0
                                        120.0, -240.0 -> 3.0
                                        150.0, -210.0 -> 4.0
                                        180.0, -180.0 -> 5.0
                                        210.0, -150.0 -> 6.0
                                        240.0, -120.0 -> 7.0
                                        270.0, -90.0 -> 8.0
                                        300.0, -60.0 -> 9.0
                                        330.0, -30.0 -> 10.0
                                        else -> 1.0
                                    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…