Reptillian

Reptorian's G'MIC Code Workshop

Recommended Posts

2 hours ago, Reptillian said:

How do I enable issues on github?

 

Click the Settings tab in the GitHub Web UI and toggle the Issues checkbox that is located under Features.

Share this post


Link to post
Share on other sites

Emboss is now is it own cli command. You can test it via code[local]. No changes other than this for now, but this makes it easier to do filters, and a bit more faster now since it uses less lines of code. You may want to update every once in a while until construction material texture or Butterworth Bandpass isn't broken. I'll give it tomorrow. Emboss/Relief uses em command instead of multiple lines of unnecessary codes.

 

em $1,$2,$3,$4

$1 = Smoothness

$2 = Angle

$3 = Depth

$4 = Depth Boost

 

Note:

em = emboss_image

Edited by Reptillian

Share this post


Link to post
Share on other sites
On 1/27/2019 at 4:50 AM, Reptillian said:

News! Construction Material Texture is going to come to G'MIC in less than a week. So you can use it on Paint.NET soon when it arrives.

 

Here's the work so far, all that's missing is the Butterworth Bandpass filtering code, and it'll be done. -

 

image.thumb.png.27b73017f85f3d57421343adf201499e.png

So where do I find this within the plugin ? I have refreshed and checked for updated filters, but not seen this yet.

Share this post


Link to post
Share on other sites

Made some new changes that will be coming. Also, I think @nycos62 would love that I added 128 palettes into G'MIC.

 

Change #1) Added 128 palettes. Some of them are based off Windows, others are based off older systems, and many of them are palettes to support pixel artists. You can type in 'pal db32 rv' in code[local] to have db32 palette directly into PDN after you apply.  It's hard to get the full list, but you can get the list here - https://github.com/dtschump/gmic-community/pull/155/commits/b309ec158a0f55f6bc85a9a7217b365b5c812ebe

 

edg = endesga

g8 = generic-8

sepac = amiga 2600 sepac, i should have done amiga2600sepac, but sepac is shorter and less memorable than ntsc and pal,so sepac it is.

 

Change #2) Transfer Color[Reduced Colors] includes palette options. You do not need to copy and paste palette to reduce colors based on those palettes.

 

Change #3) Improved Emboss cli command. Now you only need to do this at the minimum 'em 140' to emboss at angle 140. You only need to assign 3 variable at most. You can also do 'em 140,2' to emboss at angle 140 at 200% depth. 200% depth is the maximum depth.

em is eq. to emboss_image

emboss_image $1,$2,$3

$1 = Angle

$2 = Depth

$3 = Smoothness

 

Change #4) Two of my filter were updated to be consistent with the changes to emboss cli.

Share this post


Link to post
Share on other sites

Premade Palette filter has been done. Blend with image option is for PDN support is to avoid creating new layer as PDN doesn't support creating new layer via filters. In Pre-Made Palette Filter, there is a info box where it'll tell you the command, and their id. pal 129 = pal zx. So, in code[local], typing in 'pal zx rv' would get you the same result as 'pal 129 rv', and the result of the zx spectrum palette.

 

The total amount of palettes that is support by pal command - 137

 

Just for wait for the changes to get into G'MIC.

Edited by Reptillian

Share this post


Link to post
Share on other sites

Okay, those changes are merged through master, and now can be seen via refreshed. You should see premade palette filter.

 

The emboss cli is however here as well as changes through the other two filters related to it.

 

Here's the palette list extracted from the g'mic code

 

1 -- pal 0 = pal bw -- Black & White
2 -- pal 1 = pal rgb -- Red-Green-Blue
3 -- pal 2 = pal b_rgb -- Black w/ Red-Green-Blue
4 -- pal 3 = pal bw_rgb -- Black & White w/ Red-Green-Blue 
5 -- pal 4 = pal cmy -- Cyan-Magenta-Yellow
6 -- pal 5 = pal cmyk -- Cyan-Magenta-Yellow-Black
7 -- pal 6 = pal wcmyk -- White-Cyan-Magenta-Black
8 -- pal 7 = pal rgbcmy -- Red-Green-Blue w/ Cyan-Magenta-Yellow
9 -- pal 8 = pal 1bitrgb -- 1 BPC RGB
10 -- pal 9 = pal aurora -- Aurora by GrafxKid
11 -- pal 10 = pal playpal -- PLAYPAL by id Tech 1/DOOM Engine
12 -- pal 11 = pal kens16 -- Andrew Kensler 16 by Andrew Kensler
13 -- pal 12 = pal kens32 -- Andrew Kensler 32 by Andrew Kensler
14 -- pal 13 = pal kens54 -- Andrew Kensler 54 by Andrew Kensler
15 -- pal 14 = pal aap12 -- AAP-Micro 12 by Adigun Polack
16 -- pal 15 = pal aap16 -- AAP-16 by Adigun Polack
17 -- pal 16 = pal aap64 -- AAP-64 by Adigun Polack
18 -- pal 17 = pal aap128 -- AAP-SPLENDOR128 by Adigun Polack
19 -- pal 18 = pal db8 -- DB8 by DawnBringer
20 -- pal 19 = pal db16 -- DB16 by DawnBringer
21 -- pal 20 = pal db32 -- DB32 by DawnBringer
22 -- pal 21 = pal db_iso22 -- DB-ISO22 by DawnBringer
23 -- pal 22 = pal edg8 -- Endesga-8 by Endesga
24 -- pal 23 = pal edg16 -- Endesga-16 by Endesga
25 -- pal 24 = pal edg32 -- Endesga-32 by Endesga
26 -- pal 25 = pal edg36 -- Endesga-36 by Endesga
27 -- pal 26 = pal edg64 -- Endesga-64 by Endesga
28 -- pal 27 = pal xaiue -- XAIUE-22 by xaiue
29 -- pal 28 = pal fant16 -- Fantasy 16 by Brettybooop
30 -- pal 29 = pal fant24 -- Fantasy 24 by Gabriel C.
31 -- pal 30 = pal tf23 -- Tranquil Fantasy 23 by windfall.apples
32 -- pal 31 = pal tfp39 -- Tranquility Plus 39 by windfall.apples
33 -- pal 32 = pal faraway48 -- Faraway 48 by Igor Ferreira.
34 -- pal 33 = pal fleja_m -- Fleja Master Palette by Fleja
35 -- pal 34 = pal linearbasic -- Linear Color Palette Basic by GrafxKid
36 -- pal 35 = pal arq16 -- ARQ16 by Endesga
37 -- pal 36 = pal blk36 -- BLK 36 by BlackedIRL.
38 -- pal 37 = pal cdbac -- CD-BAC by DimWiddy
39 -- pal 38 = pal cgarne -- CG Arne by Arne Niklas Jansson
40 -- pal 39 = pal cpcboy -- CPC Boy by Arne Niklas Jansson
41 -- pal 40 = pal dimwid23 -- DimWiddy 22 by DimWiddy
42 -- pal 41 = pal 4l -- |||| 22 by ||||
43 -- pal 42 = pal fzteth16 -- FZT Ethereal 16 by Fusionnist
44 -- pal 43 = pal gzxp -- GZXP by GrafxKid
45 -- pal 44 = pal pear36 -- Pear 36 by PineTreeApple
46 -- pal 45 = pal pineapple32 -- Pineapple 32 by PineTreeApple
47 -- pal 46 = pal rosy42 -- Rosy 42 by PineTreeApple
48 -- pal 47 = pal sft15 -- Softy 15 by Eggy
49 -- pal 48 = pal spec12 -- SPEC12 by Smalls
50 -- pal 49 = pal starmancer -- Starmancer by Unknown
51 -- pal 50 = pal sup8 -- Superb 8 by BigPotato
52 -- pal 51 = pal sweetie16 -- Sweetie 16 by GrafxKid
53 -- pal 52 = pal taffy16 -- Taffy 16 by PineTreePizza
54 -- pal 53 = pal todayland -- Todayland Palette V2 by GrafxKid
55 -- pal 54 = pal zu32 -- Zughy 32 by Zughy
56 -- pal 55 = pal enos16 -- ENOS16 by Endesga
57 -- pal 56 = pal equpix15 -- Equpix 15 by Night
58 -- pal 57 = pal night16 -- Night 16 by Night
59 -- pal 58 = pal simjpc16 -- SimpleJPC-16 by Adigun Polack
60 -- pal 59 = pal acid15 -- Acid 15 by pyrometal
61 -- pal 60 = pal battery24 -- Battery 24 by Battery Jellyfish
62 -- pal 61 = pal crimso11 -- Crimso 11 by Crimso
63 -- pal 62 = pal drz15 -- DRZ15A by Drazille
64 -- pal 63 = pal eggy15 -- Eggy 15 by Eggy
65 -- pal 64 = pal jewel -- Jewel by AprilSundae
66 -- pal 65 = pal polar11 -- Polar11 by Smalls
67 -- pal 66 = pal boomboom -- BoomBoom by Salman_Shh
68 -- pal 67 = pal g8 -- Generic-8 by GrafxKid
69 -- pal 68 = pal matriax8c -- Matriax8c by Davit Masia
70 -- pal 69 = pal au15 -- Autum 15 by jok
71 -- pal 70 = pal au15y -- Autum 15 (Yellow -- by jok
72 -- pal 71 = pal jerrypie22 -- JerryPie 22 by JerryPie
73 -- pal 72 = pal naji16 -- Naji 16 by Naji
74 -- pal 73 = pal blessing -- Blessing by Maruki
75 -- pal 74 = pal fairy -- Fairy Tales by lollige
76 -- pal 75 = pal fuzz4 -- Fuzzy Four by P-Tux7
77 -- pal 76 = pal pastel -- Oh Hell, Pastel 15 by StarlitSunset
78 -- pal 77 = pal tui15 -- TUI-15 by Jeremy
79 -- pal 78 = pal cave -- Cave by PineTreePizza
80 -- pal 79 = pal psygnosia -- Psygnosia by Arne Niklas Jansson
81 -- pal 80 = pal marshmellow32 -- MarshMellow 32 by FormalPrejudice
82 -- pal 81 = pal finlal11 -- Finlal 11 by Finlal
83 -- pal 82 = pal ykb22 -- YKB-22 by yahkehbu
84 -- pal 83 = pal graveyard -- Graveyard-21 by AprilSundae
85 -- pal 84 = pal steamlords -- Steam Lords - 16 by Slynyrd
86 -- pal 85 = pal aaprad -- AAP-RadiantXV by Adigun Polack
87 -- pal 86 = pal daruda -- Daruda 22 by daruda
88 -- pal 87 = pal rust6 -- Rust-6 by BluePhoenix
89 -- pal 88 = pal xaiue_rad -- XAIUE-Radiant by xaiue
90 -- pal 89 = pal firestorm -- Firestorm by theartistjulian
91 -- pal 90 = pal supernova7 -- SuperNova 7 by Blue Phoenix
92 -- pal 91 = pal nyx8 -- NYX8 by Javier Guerrero
93 -- pal 92 = pal oil6 -- OIL 6 by GrafxKid
94 -- pal 93 = pal pixelwave -- Pixelwave by Reptorian
95 -- pal 94 = pal gb_d_1 -- GB Default #1
96 -- pal 95 = pal gb_d_2 -- GB Default #2
97 -- pal 96 = pal gb_bz -- GB Blackzone
98 -- pal 97 = pal gb_easy -- GB Easy by GrafxKid
99 -- pal 98 = pal gb_arne -- GB Arne by Arne
100 -- pal 99 = pal gb_pj -- PJ by N/A
101 -- pal 100 = pal gb_kirokaze -- GB Kirokaze by Kirokaze
102 -- pal 101 = pal gb_cyber -- GB Cyber
103 -- pal 102 = pal gb_grapefruit -- GB Grapefruit by GrafxKid
104 -- pal 103 = pal gb_forest -- GB Forest
105 -- pal 104 = pal gb_ice_cream -- GB Ice Cream by Kerrie Lake
106 -- pal 105 = pal gb_rb -- GB Red_Blue
107 -- pal 106 = pal gb_choco -- GB Chocolate by GrafxKid
108 -- pal 107 = pal arne4 -- ARNE4 by Arne
109 -- pal 108 = pal hal4 -- HallowPumpkin by WildLeoKnight
110 -- pal 109 = pal amiga2600ntsc -- Amiga 2600 NTSC
111 -- pal 110 = pal amiga2600pal -- Amiga 2600 PAL
112 -- pal 111 = pal secam -- Amiga 2600 Secam
113 -- pal 112 = pal amstrad_cpc -- Amstrad CPC
114 -- pal 113 = pal apple2 -- Apple II
115 -- pal 114 = pal cga -- CGA
116 -- pal 115 = pal cga00 -- CGA Mode 0 [Low]
117 -- pal 116 = pal cga01 -- CGA Mode 0 [High]
118 -- pal 117 = pal cga10 -- CGA Mode 1 [Low]
119 -- pal 118 = pal cga11 -- CGA Mode 1 [High]
120 -- pal 119 = pal cga20 -- CGA Mode 2 [Low]
121 -- pal 120 = pal cga21 -- CGA Mode 2 [High]
122 -- pal 121 = pal c64 -- Commodore 64
123 -- pal 122 = pal com_vic_20 -- Commodore VIC-20
124 -- pal 123 = pal jmp -- Japanese Machine Palette by Arne Niklas Jansson
125 -- pal 124 = pal mac2 -- Macintosh II
126 -- pal 125 = pal nes -- NES
127 -- pal 126 = pal pico_8 -- PICO-8
128 -- pal 127 = pal risc -- RISC OS
129 -- pal 128 = pal mo5 -- Thomson MO5
130 -- pal 129 = pal zx -- ZX Spectrum
131 -- pal 130 = pal gnome32 -- GNOME 32
132 -- pal 131 = pal elc22 -- Electric Crayon 22
133 -- pal 132 = pal chip16 -- Chip16
134 -- pal 133 = pal msx -- MSX
135 -- pal 134 = pal lms -- Legacy Paint
136 -- pal 135 = pal msxp -- XP Paint
137 -- pal 136 = pal vis -- Vista Paint

 

Edited by Reptillian

Share this post


Link to post
Share on other sites
2 hours ago, Reptillian said:

Okay, those changes are merged through master, and now can be seen via refreshed. You should see premade palette filter.

 

The emboss cli is however here as well as changes through the other two filters related to it.

 

Here's the palette list extracted from the g'mic code

  Reveal hidden contents


1 -- pal 0 = pal bw -- Black & White
2 -- pal 1 = pal rgb -- Red-Green-Blue
3 -- pal 2 = pal b_rgb -- Black w/ Red-Green-Blue
4 -- pal 3 = pal bw_rgb -- Black & White w/ Red-Green-Blue 
5 -- pal 4 = pal cmy -- Cyan-Magenta-Yellow
6 -- pal 5 = pal cmyk -- Cyan-Magenta-Yellow-Black
7 -- pal 6 = pal wcmyk -- White-Cyan-Magenta-Black
8 -- pal 7 = pal rgbcmy -- Red-Green-Blue w/ Cyan-Magenta-Yellow
9 -- pal 8 = pal 1bitrgb -- 1 BPC RGB
10 -- pal 9 = pal aurora -- Aurora by GrafxKid
11 -- pal 10 = pal playpal -- PLAYPAL by id Tech 1/DOOM Engine
12 -- pal 11 = pal kens16 -- Andrew Kensler 16 by Andrew Kensler
13 -- pal 12 = pal kens32 -- Andrew Kensler 32 by Andrew Kensler
14 -- pal 13 = pal kens54 -- Andrew Kensler 54 by Andrew Kensler
15 -- pal 14 = pal aap12 -- AAP-Micro 12 by Adigun Polack
16 -- pal 15 = pal aap16 -- AAP-16 by Adigun Polack
17 -- pal 16 = pal aap64 -- AAP-64 by Adigun Polack
18 -- pal 17 = pal aap128 -- AAP-SPLENDOR128 by Adigun Polack
19 -- pal 18 = pal db8 -- DB8 by DawnBringer
20 -- pal 19 = pal db16 -- DB16 by DawnBringer
21 -- pal 20 = pal db32 -- DB32 by DawnBringer
22 -- pal 21 = pal db_iso22 -- DB-ISO22 by DawnBringer
23 -- pal 22 = pal edg8 -- Endesga-8 by Endesga
24 -- pal 23 = pal edg16 -- Endesga-16 by Endesga
25 -- pal 24 = pal edg32 -- Endesga-32 by Endesga
26 -- pal 25 = pal edg36 -- Endesga-36 by Endesga
27 -- pal 26 = pal edg64 -- Endesga-64 by Endesga
28 -- pal 27 = pal xaiue -- XAIUE-22 by xaiue
29 -- pal 28 = pal fant16 -- Fantasy 16 by Brettybooop
30 -- pal 29 = pal fant24 -- Fantasy 24 by Gabriel C.
31 -- pal 30 = pal tf23 -- Tranquil Fantasy 23 by windfall.apples
32 -- pal 31 = pal tfp39 -- Tranquility Plus 39 by windfall.apples
33 -- pal 32 = pal faraway48 -- Faraway 48 by Igor Ferreira.
34 -- pal 33 = pal fleja_m -- Fleja Master Palette by Fleja
35 -- pal 34 = pal linearbasic -- Linear Color Palette Basic by GrafxKid
36 -- pal 35 = pal arq16 -- ARQ16 by Endesga
37 -- pal 36 = pal blk36 -- BLK 36 by BlackedIRL.
38 -- pal 37 = pal cdbac -- CD-BAC by DimWiddy
39 -- pal 38 = pal cgarne -- CG Arne by Arne Niklas Jansson
40 -- pal 39 = pal cpcboy -- CPC Boy by Arne Niklas Jansson
41 -- pal 40 = pal dimwid23 -- DimWiddy 22 by DimWiddy
42 -- pal 41 = pal 4l -- |||| 22 by ||||
43 -- pal 42 = pal fzteth16 -- FZT Ethereal 16 by Fusionnist
44 -- pal 43 = pal gzxp -- GZXP by GrafxKid
45 -- pal 44 = pal pear36 -- Pear 36 by PineTreeApple
46 -- pal 45 = pal pineapple32 -- Pineapple 32 by PineTreeApple
47 -- pal 46 = pal rosy42 -- Rosy 42 by PineTreeApple
48 -- pal 47 = pal sft15 -- Softy 15 by Eggy
49 -- pal 48 = pal spec12 -- SPEC12 by Smalls
50 -- pal 49 = pal starmancer -- Starmancer by Unknown
51 -- pal 50 = pal sup8 -- Superb 8 by BigPotato
52 -- pal 51 = pal sweetie16 -- Sweetie 16 by GrafxKid
53 -- pal 52 = pal taffy16 -- Taffy 16 by PineTreePizza
54 -- pal 53 = pal todayland -- Todayland Palette V2 by GrafxKid
55 -- pal 54 = pal zu32 -- Zughy 32 by Zughy
56 -- pal 55 = pal enos16 -- ENOS16 by Endesga
57 -- pal 56 = pal equpix15 -- Equpix 15 by Night
58 -- pal 57 = pal night16 -- Night 16 by Night
59 -- pal 58 = pal simjpc16 -- SimpleJPC-16 by Adigun Polack
60 -- pal 59 = pal acid15 -- Acid 15 by pyrometal
61 -- pal 60 = pal battery24 -- Battery 24 by Battery Jellyfish
62 -- pal 61 = pal crimso11 -- Crimso 11 by Crimso
63 -- pal 62 = pal drz15 -- DRZ15A by Drazille
64 -- pal 63 = pal eggy15 -- Eggy 15 by Eggy
65 -- pal 64 = pal jewel -- Jewel by AprilSundae
66 -- pal 65 = pal polar11 -- Polar11 by Smalls
67 -- pal 66 = pal boomboom -- BoomBoom by Salman_Shh
68 -- pal 67 = pal g8 -- Generic-8 by GrafxKid
69 -- pal 68 = pal matriax8c -- Matriax8c by Davit Masia
70 -- pal 69 = pal au15 -- Autum 15 by jok
71 -- pal 70 = pal au15y -- Autum 15 (Yellow -- by jok
72 -- pal 71 = pal jerrypie22 -- JerryPie 22 by JerryPie
73 -- pal 72 = pal naji16 -- Naji 16 by Naji
74 -- pal 73 = pal blessing -- Blessing by Maruki
75 -- pal 74 = pal fairy -- Fairy Tales by lollige
76 -- pal 75 = pal fuzz4 -- Fuzzy Four by P-Tux7
77 -- pal 76 = pal pastel -- Oh Hell, Pastel 15 by StarlitSunset
78 -- pal 77 = pal tui15 -- TUI-15 by Jeremy
79 -- pal 78 = pal cave -- Cave by PineTreePizza
80 -- pal 79 = pal psygnosia -- Psygnosia by Arne Niklas Jansson
81 -- pal 80 = pal marshmellow32 -- MarshMellow 32 by FormalPrejudice
82 -- pal 81 = pal finlal11 -- Finlal 11 by Finlal
83 -- pal 82 = pal ykb22 -- YKB-22 by yahkehbu
84 -- pal 83 = pal graveyard -- Graveyard-21 by AprilSundae
85 -- pal 84 = pal steamlords -- Steam Lords - 16 by Slynyrd
86 -- pal 85 = pal aaprad -- AAP-RadiantXV by Adigun Polack
87 -- pal 86 = pal daruda -- Daruda 22 by daruda
88 -- pal 87 = pal rust6 -- Rust-6 by BluePhoenix
89 -- pal 88 = pal xaiue_rad -- XAIUE-Radiant by xaiue
90 -- pal 89 = pal firestorm -- Firestorm by theartistjulian
91 -- pal 90 = pal supernova7 -- SuperNova 7 by Blue Phoenix
92 -- pal 91 = pal nyx8 -- NYX8 by Javier Guerrero
93 -- pal 92 = pal oil6 -- OIL 6 by GrafxKid
94 -- pal 93 = pal pixelwave -- Pixelwave by Reptorian
95 -- pal 94 = pal gb_d_1 -- GB Default #1
96 -- pal 95 = pal gb_d_2 -- GB Default #2
97 -- pal 96 = pal gb_bz -- GB Blackzone
98 -- pal 97 = pal gb_easy -- GB Easy by GrafxKid
99 -- pal 98 = pal gb_arne -- GB Arne by Arne
100 -- pal 99 = pal gb_pj -- PJ by N/A
101 -- pal 100 = pal gb_kirokaze -- GB Kirokaze by Kirokaze
102 -- pal 101 = pal gb_cyber -- GB Cyber
103 -- pal 102 = pal gb_grapefruit -- GB Grapefruit by GrafxKid
104 -- pal 103 = pal gb_forest -- GB Forest
105 -- pal 104 = pal gb_ice_cream -- GB Ice Cream by Kerrie Lake
106 -- pal 105 = pal gb_rb -- GB Red_Blue
107 -- pal 106 = pal gb_choco -- GB Chocolate by GrafxKid
108 -- pal 107 = pal arne4 -- ARNE4 by Arne
109 -- pal 108 = pal hal4 -- HallowPumpkin by WildLeoKnight
110 -- pal 109 = pal amiga2600ntsc -- Amiga 2600 NTSC
111 -- pal 110 = pal amiga2600pal -- Amiga 2600 PAL
112 -- pal 111 = pal secam -- Amiga 2600 Secam
113 -- pal 112 = pal amstrad_cpc -- Amstrad CPC
114 -- pal 113 = pal apple2 -- Apple II
115 -- pal 114 = pal cga -- CGA
116 -- pal 115 = pal cga00 -- CGA Mode 0 [Low]
117 -- pal 116 = pal cga01 -- CGA Mode 0 [High]
118 -- pal 117 = pal cga10 -- CGA Mode 1 [Low]
119 -- pal 118 = pal cga11 -- CGA Mode 1 [High]
120 -- pal 119 = pal cga20 -- CGA Mode 2 [Low]
121 -- pal 120 = pal cga21 -- CGA Mode 2 [High]
122 -- pal 121 = pal c64 -- Commodore 64
123 -- pal 122 = pal com_vic_20 -- Commodore VIC-20
124 -- pal 123 = pal jmp -- Japanese Machine Palette by Arne Niklas Jansson
125 -- pal 124 = pal mac2 -- Macintosh II
126 -- pal 125 = pal nes -- NES
127 -- pal 126 = pal pico_8 -- PICO-8
128 -- pal 127 = pal risc -- RISC OS
129 -- pal 128 = pal mo5 -- Thomson MO5
130 -- pal 129 = pal zx -- ZX Spectrum
131 -- pal 130 = pal gnome32 -- GNOME 32
132 -- pal 131 = pal elc22 -- Electric Crayon 22
133 -- pal 132 = pal chip16 -- Chip16
134 -- pal 133 = pal msx -- MSX
135 -- pal 134 = pal lms -- Legacy Paint
136 -- pal 135 = pal msxp -- XP Paint
137 -- pal 136 = pal vis -- Vista Paint

 

Not seen any additions, where exactly do the pallette's reside ? 

Share this post


Link to post
Share on other sites

Hmm, I refreshed into PDN and not seeing anything. Krita and GIMP does have the palettes support using latest beta G'MIC refreshed. The palettes should be in Testing-> Reptorian -> Premade Palette. To reduce colors using those palettes, they should be under transfer color reduced, and you can change the reference layer option to palette to reduce using palettes. If they're not there, then at this point, any changes I made will only be seen in G'MIC 2.5 PDN which won't be arriving in a long while.

 

@null54 Would it be possible to provide beta version of G'MIC? Krita and GIMP have the benefit of using beta G'MIC while PDN just does not have that benefit.

Edited by Reptillian

Share this post


Link to post
Share on other sites
2 hours ago, Reptillian said:

Would it be possible to provide beta version of G'MIC?

 

I can provide the current G'MIC beta, but as the beta releases are not tagged in git I will not be notified when a new beta is released.

Share this post


Link to post
Share on other sites
56 minutes ago, null54 said:

 

I can provide the current G'MIC beta, but as the beta releases are not tagged in git I will not be notified when a new beta is released.

 

Hmm, another idea I can think of. G'MIC does support updating offline. I wonder if it would be possible to use that to get around this issue. One would have to disable weekly update, and use another updater with using the latest g'mic. You would have to rename updatexxxx where xxxx is the latest version, and yyyy is the current PDN version.

 

This isn't ideal, I know, but it's the only thing I can think of. Maybe another filter just to do this?

Edited by Reptillian

Share this post


Link to post
Share on other sites

Some news - Finally got pal cli command to accept negative numbers. pal {-x} means that for two layers, one of them is going to be turned into a palette. For positive numbers, it just create premade palette. I'm also transforming my reduced filter into a flexible cli command.

 

For reference : pal -50000 = pal -1 = pal i

Edited by Reptillian

Share this post


Link to post
Share on other sites

Another update, now that I have finished converting my reduced color filter into a cli command, it will be easy to create the upcoming replacement for it. Also, as gmic 2.5 will offer dynamic gui, there wouldn't be so much elements unless you chose to activate those element. the cli command has the option to indexing styles, restrict colors by tiles, and built-in pixelate command. For custom palette, you would need to do something like {custom palette layer} lctwp -1,$* where $* is the rest of inputs as -1 indicates two layers where one is a palette.

 

Reminder - All changes will come to gmic 2.5 as updates do not work any longer for now.

 

Here's a sample using a beach image from pexels (with work involved to making it look better).

image.png.655e68beb428ce4cb97b714a2461f783.png

 

 

Yes, it's a terrible looking image, but that is literally happen if you restrict colors by tiles.You can also see vertical stripes which is a style, and you don't see pixel as 1:1. So, this means you can stimulate older hardware pretty well.

 

----

Structure of cli command

lctwp {palette},{indexing_style},{end_dithering},{alpha_colors},{alpha_dithering},{style_factor},{initial_resizing_method},{pixel_width},{pixel_height},{color_count_per_tiles},{tile_width},{tile_height},{dithering_factor_tiles},{indexing_method}

Edited by Reptillian

Share this post


Link to post
Share on other sites

Ok, all changes I did should be here on G'MIC 2.5. Just click refresh or update and you should see those.

 

@mottoman Since you asked about the palettes, how are they working out for you? Search 'Premade Palette' via search box or find it under testing->reptorian->premade palette. You can also use those palette to change colors of image via transfer color reduced. And there's the experimental pal_t to do what transfer color reduced does with more options though it will be turned into a filter later.

 

Word of note though, lctwp has been renamed to pal_t. Reason: pal_t is more easier to remember, and pal_t has more in common with pal than lctwp in names. Syntax of pal_t is the same as lctwp. Most of the time, all you really end is the first 3 syntax to 7 syntax. Alpha Colors to 0 or 1 will remove alpha. pal_t will be transformed to a filter later when I feel like doing that.

Edited by Reptillian

Share this post


Link to post
Share on other sites

Ok, I may have found a much faster way to generate hardware restriction at the cost of accuracy. And by faster, I mean from 20 mins down to 45 seconds.

 

Here's a bit of code

 

    +at "s c f "ia" a c",25,25 +colormap. 8,1,1 index.. .,0,1 l[1] repeat 7 [0] done endl

 

+ means add new layer

at means apply by tiles

25,25 is the tile size

s c means split channel

f means fill, and "ia" means average

a c means append channel, so it is now a single image in that tile.

colormap converts a image to a palette that match closest to the image

index basically restrict image by colors

l means the image is going to be processed locally

repeat done basically repeat this command for x amount of time

[0] [1]......[n] all refers to layer number

 

So, all I need to do is to figure out how to use the palette map as a reference to extract segment generated from the tiles.

 

And for reference, here's the segment of colors to stimulate hardware restriction

 

image.png.8d5bf9bc28bc811bccfe44e78756d8f5.png

Edited by Reptillian

Share this post


Link to post
Share on other sites

Okay, seem like I am done with the pal_t cli command (now with 19 options though upscale option is not going to work on PDN due to PDN filter limitations), and now I am replacing my transfer color[reduced colors] with dynamic options. Though, the dynamic option for G'MIC is something I have yet to understand. pal_t hardware emulation is at least usable though it's not fast enough. Other than that, the filter works fast enough. Most of the time you aren't going to need hardware emulation. This might take a few weeks of work though.

 

 

 

 

Share this post


Link to post
Share on other sites

New filter has been made and will be landing soon - Still haven't done the pal_t cli to a gui filter thing as I haven't figured it out yet.

 

image.png.e8a77f56ab35f288a60e1238d092fa28.png

 

Guess time is over, it's the G'MIC  version based off Color Modulo by @MadJik

 

New features:

  • Channel Value Restriction
  • Color Space (RGB, CMY,CMYK,LAB,LCH,YIQ,YUV,XYZ)
  • Modulo Styles (Modulo (What the regular version did),Divisive Modulo, Divisive Modulo-Continuous)
  • Channel Swapping
  • Diagonal Flipping
  • Alpha Channel
Edited by Reptillian
  • Like 1

Share this post


Link to post
Share on other sites

The older transfer color [reduced colors] will be replaced with a better version with new features including dynamic GUI. Just have submitted change to it.

 

Speaking of which, I may actually change my earlier filters to take advantage of dynamic gui support. So, you wouldn't need to be overwhelmed by 80 options at once, but you still can use 80+ options if desired. I might make simplified option with dynamic gui for those that hates using 40+ options on a filter.

Edited by Reptillian

Share this post


Link to post
Share on other sites

Improved Emboss-Relief command! Now, I set it to go up to 500%. Also, multi-level embossing has been improved. Also, after this update arrive around this week or next week, I'd like a bit of a test with code[local] to see just much level of embossing is ok. I could do 5000% embossing. 10000% is overkill though.

 

Here's a test.

 

1547343892_embossingtest.gif.0f0ac71c5d041ee5b07db90d3eb5a3f4.gif

 

 

Edited by Reptillian
  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites
4 hours ago, lynxster4 said:

@Reptillian    I use Emboss-Relief quite a bit. You can get some interesting effects in color mode depending on the image you use.

 

Thanks for updating!  :)

 

Thank you very much.

 

There's actually more update that will come to the filter. I added extreme embossing option. The reason why I decided to add a checkmark option for extreme embossing is that it's hard to control the smaller end of embossing with extreme embossing setting. Here's how it looks like right now on my end. Mind the bad cropping though.

 

image.png.8bf84879426a3bc7a11e3b0270517862.png

 

If Enable Extreme Emboss or Relief? is on, then Depth (%) can go up to 5000%. If not, it'll go up to 500%.

Edited by Reptillian
  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.