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

Save palette colors to XPF and PNG #197

Merged
merged 2 commits into from
Aug 14, 2020
Merged

Conversation

kanurag94
Copy link
Member

Type: Enhancement
Fixes #196

XPF file and PNG now contains palette colors. The colors are to be passed in hex format.
Sample xpf file:

;Position file automatically generated by XaoS 4.1
;  - a realtime interactive fractal zoomer
;Use xaos -loadpos <filename> to display it
(initstate)
(defaultpalette 0)
(palettecolors "ffffff" "fce94f" "180719" "c5421c" "1d120b" "872e47" "181b0d" "f1e680" "111f18" "f0a28b" "0b041e" "6a57bd" "1d150e" "0c8c76" "0a061d" "32904d" "160018" "94bcf3" "042007" "e7920e" "0a0d14" "b89344" "0d1c03" "a9f898" "040022" "3e5330" "071516" "9861b8" "08030c" "f75ceb" "1f2010")
(formula 'mandel)
(view -0.75 0 2.5 2.5)

Using Command Line:

xaos -palettecolors  "ffffff" "fce94f" "180719" "c5421c" "1d120b" "872e47" "181b0d" "f1e680" "111f18" "f0a28b" "0b041e" "6a57bd" "1d150e" "0c8c76" "0a061d" "32904d" "160018" "94bcf3" "042007" "e7920e" "0a0d14" "b89344" "0d1c03" "a9f898" "040022" "3e5330" "071516" "9861b8" "08030c" "f75ceb" "1f2010"

@kanurag94 kanurag94 requested a review from kovzol August 14, 2020 20:51
@kovzol kovzol merged commit b10d226 into xaos-project:master Aug 14, 2020
@kovzol
Copy link
Contributor

kovzol commented Aug 14, 2020

Nice improvement, thanks!

@kanurag94 kanurag94 deleted the palettexpf branch August 17, 2020 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save palette information to xpf
2 participants