Skip to content

Instantly share code, notes, and snippets.

View Aiosa's full-sized avatar
💭
Busy... but happy ♪♫♪

Aiosa

💭
Busy... but happy ♪♫♪
View GitHub Profile
///////////////
// OLD CODE
///////////////
int32_t err = MZ_OK;
void *mem_stream = NULL;
void *zip_handle = NULL;
mz_stream_mem_create(&mem_stream);
mz_stream_mem_set_grow_size(mem_stream, (128 * 1024));
@Aiosa
Aiosa / index.js
Last active January 26, 2023 07:50
WebGL Module Setup
const webglProcessing = new WebGLModule({
// htmlControlsId: "div-id", //if set, shader realtime controls are available
// htmlShaderPartHeader: callback, //function that handles HTML rendering for each layer
// debug: t/f,
// for other control options, see WebGLModule class
});
const seaGL = new OpenSeadragon.BridgeGL(viewer, webglProcessing, true); //true to enable cache, false to disable
seaGL.addVisualisation({
//here you want to add a visualization with compulsory member "shaders" - object that defines what postprocessing is applied
function [str] = colmap_to_json(func)
%%convert function of a colormap to JSON
%%use: colmap_to_json(@parula);
str = "{\n";
for i = 3:8
s = cnvt(func(i));
str = strcat(str,s, "\n");
end
str = strcat(str,"}");

Keybase proof

I hereby claim:

  • I am aiosa on github.
  • I am aiosa (https://keybase.io/aiosa) on keybase.
  • I have a public key ASBKb3iK75M-xXNkvILKxzGE12DI-0l-7TLxBcjukacD7Ao

To claim this, I am signing this object: