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
use image; | |
fn ega_to_image(bytes : &Vec<u8>) -> image::RgbaImage | |
{ | |
let tile_size = [16, 16]; | |
let bits_per_value = 1; | |
let channel_count = 4; | |
let palette = [ |
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
use glm::*; | |
use std::collections::HashMap; | |
/* | |
class TileType: | |
var coord_top : Vector2 = Vector2(1, 4) | |
var coord_side : Vector2 = Vector2(1, 4) | |
var coord_bottom : Vector2 = Vector2(1, 4) |
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
uniform_float uRange { | |
default = 5; | |
min = 1; | |
max = 16.0; | |
step = 1; | |
description = "How many pixels the algorithm follows to try to detect an edge."; | |
display_name = "Range"; | |
} | |
uniform_float uThreshold { |
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
// A public domain rust implementation of three common signal resampling algorithms. | |
/* | |
Released under the following license (CC0). | |
Creative Commons Legal Code | |
CC0 1.0 Universal | |
Statement of Purpose | |
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
/* | |
[dependencies] | |
image = "0.23.14" | |
palette = "0.5.0" | |
*/ | |
use std::env::args as args; | |
use image::io::Reader as ImageReader; | |
use image::{DynamicImage, Rgba, Rgb, GenericImageView, Pixel}; | |
use palette::{LinSrgba, Hsv}; |
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
"use strict"; | |
function on_new_sub(name, text) | |
{ | |
if(text == null || text == "") | |
return; | |
var newtext = ""; | |
for(var i = 0; i < text.length; i += 1) | |
{ | |
var c = text[i]; |
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
textractor 4.12.3 with translation plugins removed and pointless plugins disabled: | |
https://mega.nz/file/IQVk2CyK#SGnxbyF3aNUh22XyLoIUZaR7aMZDKdpWIgZLh0MlIZM | |
You need both the x86 and x64 subfolders. The x86 version is for 32-bit games, the x64 version is for 64-bit games. | |
If it throws a VCRUNTIME dll error on launch, you need to install these vcredists: https://github.com/Artikash/Textractor/releases/download/v4.12.3/vcredist-x86.exe https://github.com/Artikash/Textractor/releases/download/v4.12.3/vcredist-x64.exe | |
has textractor updated since 4.12.3? check for yourself: | |
https://github.com/Artikash/Textractor/releases | |
if it has updated since 4.12.3, download the latest version, and DISABLE EVERY EXTENSION (with the "delete" key) |
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
////before | |
pub (crate) fn sim_BINOP(&mut self) -> StepResult | |
{ | |
if self.stack_len() < 2 | |
{ | |
return Err(Some(format!("internal error: BINOP instruction requires 2 values on the stack but found {}", self.stack_len()))); | |
} | |
let immediate = self.pull_single_from_code()?; |
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
// Very primitive ISM2 -> .obj converter. | |
// Only works well enough to dump FFF:ADF's map files with enough information to log where hidden treasures are located. | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <vector> | |
#include <unordered_map> |
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
use std::vec::Vec; | |
use std::fs::File; | |
use std::io::Read; | |
use std::result::Result; | |
fn get_data() -> Result<Vec<Vec<f64>>, std::io::Error> | |
{ | |
let mut file = File::open("info.txt")?; | |
let mut text = String::new(); | |
file.read_to_string(&mut text)?; |