Skip to content

Commit

Permalink
Merge pull request #77 from ZTFtrue/develope
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
ZTFtrue authored Oct 16, 2024
2 parents 6f98f8e + 0e7bc23 commit bcaff94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file added Picture/matrix.mp4
Binary file not shown.
Binary file added Picture/matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion app/src/main/java/com/ztftrue/music/ui/play/CoverView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import com.ztftrue.music.R
import com.ztftrue.music.ui.play.Drop.Companion.generateRandomChars
import kotlinx.coroutines.delay
import org.jaudiotagger.tag.FieldKey
import kotlin.random.Random

@OptIn(ExperimentalFoundationApi::class)
@Composable
Expand Down Expand Up @@ -202,6 +201,7 @@ fun CoverView(musicViewModel: MusicViewModel) {
val cDrops = ArrayList<Int>()
columnDrops.forEachIndexed { index3, drop ->
if (index == index2) {
// TODO Use log function to calculate the speed
drop.update((magnitude))
// 检查是否超出屏幕
if (drop.y > canvasHeight.floatValue + dropHeight) {
Expand Down Expand Up @@ -233,6 +233,7 @@ fun CoverView(musicViewModel: MusicViewModel) {
// )
// )
}

drops.forEach { columnDrops ->
columnDrops.forEach { drop ->
drawContext.canvas.nativeCanvas.apply {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Or download the latest APK from the [Releases Section](https://github.com/ZTFtru
<img alt="songs" src="./Picture/songs.jpg" width="200px"/><img alt="songs" src="./Picture/songs.jpg" width="200px"/>
<img alt="dic" src="./Picture/dic.png" width="200px"/><img alt="lyrics" src="./Picture/lyrics.png" width="200px"/><img alt="songs" src="./Picture/artist.png" width="200px"/>
<img alt="songs" src="./Picture/genre.png" width="200px"/><img alt="songs" src="./Picture/index.jpg" width="200px"/>
<img alt="songs" src="./Picture/matrix.png" width="200px"/><img alt="songs" src="./Picture/index.jpg" width="200px"/>

<video width="320px" controls>
<source src="./Picture/MonstrMusicExample.mp4" type="video/mp4">
Expand Down

0 comments on commit bcaff94

Please sign in to comment.