Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite Editor: SVGs containing pure black colours import this as a silver/grey, passes incorrect result in-game also #8126

Closed
gnysek opened this issue Oct 24, 2024 — with GM Bug Reporter · 2 comments
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@gnysek
Copy link
Contributor

gnysek commented Oct 24, 2024

Description

When importing SVG as vector image, black (#000000) is imported as #949494 (148, 148, 148).

To get black, it needs to be #000001 at least.

Seems it's because black things in SVG might not have "style" param at all in case of black.

Steps To Reproduce

  1. Check attached example
  2. Compare with attached image

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.654 Runtime v2024.1100.0.680

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

Which platform(s) are you seeing the problem on?

Windows

Attached Files

  • gm-svg-test.svg

eafcd756-a014-4a96-84f7-cbd110aea563

@gm-bug-reporter gm-bug-reporter bot added runner-bug In-game bugs with the "GameMaker Studio 2" runtimes project This issue has a sample project attached labels Oct 24, 2024
@gnysek
Copy link
Contributor Author

gnysek commented Oct 24, 2024

(That's for #5895 feature)

@jackerley jackerley moved this from Triage to Backlog in Team Workload Oct 25, 2024
@YYDan YYDan changed the title Black color becames silver in vector SVG Sprite Editor: SVGs containing pure black colours import this as a silver/grey, passes incorrect result in-game also Jan 30, 2025
@YYDan YYDan added this to the 2024.13 milestone Jan 30, 2025
@YYDan YYDan moved this from Backlog to Todo in Team Workload Jan 30, 2025
@alicemoretti alicemoretti self-assigned this Feb 4, 2025
@yymrennie
Copy link

Fixed in 2024.13.

This was caused by the default colour being semi-transparent white if a fill attribute wasn't specified (this was for debugging purposes during development) but it's now been set to the correct value of opaque black.

@github-project-automation github-project-automation bot moved this from Todo to Done in Team Workload Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Done
Development

No branches or pull requests

4 participants