New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gdicons

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdicons

Render Geometry Dash icons

  • 1.2.0
  • PyPI
  • Socket score

Maintainers
1

gdicons

A Python library to render Geometry Dash icons.

Usage

Import the library like so:

from gdicons import *

Prerequisites

This library requires a Geometry Dash Steam installation, or at the very least, a Resources folder containing the following:

  • An icons folder containing each icon in all three qualities
  • Robot_Animdesc.plist
  • Spider_Animdesc.plist

By default, it will set its resources path to the one included in a default Steam installation. To override this, call this function:

set_resources_path(<path to Resources folder>)

Render an Icon

To render an icon, call this function:

rendered_icon = render_icon(...)

This returns a PIL Image object, which can then be saved to a file.

Parameters

Parameter nameParameter description
gamemodeThe gamemode to render. Can be one of "cube", "ship", "ball", "ufo", "wave", "robot", "spider", "swing", or "jetpack".
idThe ID of the gamemode to render.
primaryThe primary color of the rendered icon. Can be a hexadecimal string ("#0b172b"), color string ("red"), or Geometry Dash color ID. See GDBrowser's iconkit for a list of Geometry Dash color IDs.
secondaryThe secondary color of the rendered icon.
glowThe glow color of the rendered icon. Can also be False to disable glow, this is default.
qualityThe texture quality of the rendered icon. A higher quality leads to a higher size. Can be one of "low"/"normal", "hd", or "uhd". Default "uhd".

Usage Example

from gdicons import *

viprin_cube = render_icon(
    gamemode  = "cube",
    id        = 133,
    primary   = "#ffff00",
    secondary = "#b900ff",
    glow      = "#b900ff"
)
nexus_spider = render_icon(
    gamemode  = "spider",
    id        = 13,
    primary   = 9,
    secondary = 12,
    glow      = 12
)

viprin_cube.save("viprin.png")
nexus_spider.save("nexus.png")

Output

A rendered image of Viprin's cube A rendered image of Nexus' spider

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc