pixijs-color
Convert and Manipulate Colors in PixiJS v8
Mixed color formats and component ranges can cause incorrect tints and alpha values in PixiJS. This skill provides focused Color API guidance and examples for conversions, manipulation, and buffer reuse.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "pixijs-color" from https://skillstore.io/skills/pixijs-pixijs-color.md and its manifest at https://skillstore.io/api/skills/pixijs-pixijs-color/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "pixijs-color". Which component values represent #ff6600 in normalized RGBA and byte RGB output?
Resultado esperado:
- Normalized RGBA: red 1, green 0.4, blue 0, alpha 1.
- Byte RGB: red 255, green 102, blue 0.
- Use toArray() for normalized RGBA and toUint8RgbArray() for byte RGB.
Usando "pixijs-color". Can I retain Color.shared as the permanent color for a sprite?
Resultado esperado:
- Do not retain Color.shared as persistent color state because other code can mutate the singleton.
- Use it for immediate conversions, or create a separate Color instance when persistent mutable state is needed.
Usando "pixijs-color". How should I replace utils.string2hex and utils.hex2string in PixiJS v8?
Resultado esperado:
Use the Color class. Convert a string with toNumber(), and convert a numeric color with toHex().
Auditoria de segurança
SeguroAll 47 static findings are false positives: 44 flag Markdown backticks, two flag documentation links, and one misclassifies color buffer documentation as reconnaissance. No evidence found of command execution, data exfiltration, system reconnaissance, or prompt injection in the reviewed SKILL.md.
Fatores de risco
⚙️ Comandos externos (44)
🌐 Acesso à rede (2)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/pixijs-pixijs-color/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/pixijs-pixijs-color?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/pixijs-pixijs-color?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/pixijs-pixijs-color/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/pixijs-pixijs-color.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
pixijs. (2026). pixijs-color security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/pixijs-pixijs-color/audits/1Citação BibTeX
@techreport{pixijs-pixijs-pixijs-color-2026,
author = {pixijs},
title = {pixijs-color security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/pixijs-pixijs-color/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "pixijs-color security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "pixijs"
date-released: "2026-11-04"
url: "https://skillstore.io/skills/pixijs-pixijs-color/audits/1"
identifiers:
- type: other
value: "skillstore:pixijs-pixijs-color:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Correct Sprite Tint Conversions
Convert CSS colors and numeric values into consistent sprite tints while handling normalized and byte component ranges.
Reduce Repeated Color Allocations
Review Color.shared usage and reusable output arrays for frequent tint calculations and packed vertex color values.
Update Legacy Color Utilities
Replace older string and hexadecimal utility calls with PixiJS v8 Color methods.
Teste estes prompts
Using PixiJS v8, convert dodgerblue into a numeric sprite tint and a hexadecimal string. Explain the relevant Color methods.
Explain why my PixiJS v8 colors differ when I pass RGB objects, plain arrays, and Uint8Array values. Show appropriate formats for each.
Compare setAlpha(), premultiply(), and toPremultiplied() in PixiJS v8. Recommend an approach when I must preserve the original color.
Review this PixiJS v8 color conversion loop: [paste loop]. Check shared state, cached array references, component ranges, and reusable buffers.
Boas práticas
- Match input ranges to their formats: normalized values for plain arrays and byte values for RGB objects or Uint8Array.
- Use Color.shared for immediate operations only, and pass reusable output buffers when repeated conversions would create unnecessary allocations.
- Use non-mutating output methods when preserving source colors, and verify conversion results against your installed PixiJS version.
Evitar
- Treating normalized outputs from toRgba() or toArray() as byte-range RGB values.
- Keeping Color.shared references as persistent state across unrelated operations.
- Using removed utils.string2hex or utils.hex2string APIs in PixiJS v8.
Perguntas frequentes
Which PixiJS version does this skill cover?
Do I need a Color instance for every fill or tint?
Why does toRgba() return values between zero and one?
Does Color.isColorLike() fully validate user input?
Does premultiply() preserve the original color?
Does this skill execute code or install PixiJS?
Detalhes do desenvolvedor
Autor
pixijsLicença
MIT
Revisão da Skillstore
r1
Aviso de versão
O autor não declarou uma versão.
Repositório
https://github.com/pixijs/pixijs-skills/tree/83760c6f53462ca9cecd68055041f5a8c94758ce/skills/pixijs-colorReferência
e6e249e016d8a82f123001d3ec33f29a48529ee3
Atualidade da manutenção
05/11/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos
📄 SKILL.md