unburn / musicard

Musicard is a futuristic music card canvas library
GNU General Public License v3.0
81 stars 22 forks source link

Object class initialization #8

Closed DanPlayz0 closed 1 year ago

DanPlayz0 commented 1 year ago

This PR has been closed as I've removed my commits due to them being conflicting.

Allow users to create a card via an object like

const card = new musicCard({
  name: "Makeba (Ian Asher Remix)",
  author: "By Ian Asher",
  color: "auto", // or hex color without # (default: auto) (auto: dominant color from thumbnail)
  brightness: 50,
  thumbnail: "https://indexmusic.it/wp-content/uploads/2023/07/jain-makeba-ian-asher-remix.jpg",
  progress: 0,
  start_time: "0:00",
  end_time: "3:00"
})
flameface commented 1 year ago

It looks good, but now that I've recently released new update, I need to wait some time.