This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Switches the visibility of the active layer, if the layer is called | |
-- "Something Back" or "Something Front", it will try to switch the | |
-- visibility of the other layer "Something Back/Front" too (so you | |
-- can switch the visibility of two layers at the same time). | |
local layer = app.activeLayer | |
if not layer then | |
return app.alert "There is no active layer" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local sprite = app.activeSprite | |
for _,layer in ipairs(sprite.layers) do | |
local cel = layer.cels[1] | |
if cel then | |
cel.image:saveAs('layer-' .. cel.layer.name .. '.png') | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
-- grafx2 compatibility by David Capello (C) 2018-2019 | |
---------------------------------------------------------------------- | |
local brush = nil | |
local spare = nil | |
local function getpicture() | |
return app.activeImage | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local layer = app.activeLayer | |
if layer then | |
layer.stackIndex = layer.stackIndex-1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local orig = app.activeSprite | |
if not orig then print("There is no active sprite to resize") end | |
local function replace_extension(path, newext) | |
local file, ext = string.match(path, "(.-)([^.]*)$") | |
if file and ext and file ~= "" and ext ~= "" then | |
return file .. newext | |
else | |
return path .. '.' .. newext | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
using namespace std; | |
// --- library --- | |
template<class T> | |
class clonable { | |
public: | |
using Base = T; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
objdump -h skia_draw_text.cpp.o | |
skia_draw_text.cpp.o: file format Mach-O 64-bit x86-64 | |
Sections: | |
Idx Name Size Address Type | |
0 __text 0000042b 0000000000000000 TEXT | |
1 __gcc_except_tab 0000009c 000000000000042c DATA | |
2 __literal4 00000008 00000000000004c8 DATA | |
3 __cstring 00000021 00000000000004d0 DATA |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libskshaper.a(libskshaper.SkShaper.o): | |
U __ZN17SkTextBlobBuilder15allocRunTextPosERK6SkFontii8SkStringPK6SkRect | |
U __ZN17SkTextBlobBuilder4makeEv | |
U __ZN17SkTextBlobBuilderD1Ev | |
00000000000006d0 T __ZN18FontMgrRunIterator7consumeEv | |
00000000000004e0 T __ZN18FontMgrRunIteratorC2EPKcmRK6SkFont5sk_spI9SkFontMgrE | |
0000000000000670 T __ZN18FontMgrRunIteratorD0Ev | |
0000000000000610 T __ZN18FontMgrRunIteratorD1Ev | |
00000000000008f0 T __ZN22StdLanguageRunIterator7consumeEv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local spr = app.activeSprite | |
spr.selection = Selection(Rectangle(0,0,spr.width,spr.height)) | |
app.command.MoveMask{ | |
target='content', | |
direction='right', | |
units='pixel', | |
quantity=2, | |
wrap=true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Copyright (C) 2019 David Capello | |
local dlg = Dialog("Plasma") | |
:number{ id="width", label="Size:", text="100", focus=true } | |
:number{ id="height", text="100" } | |
:number{ id="frames", label="Frames:", text="100" } | |
:button{ id="ok", text="OK", focus=true } | |
:button{ id="cancel", text="Cancel" } | |
dlg:show() |