This is where I will post my APIs which will all be a part of BrineUtil.
The APIs in BrineUtil currently are:
- BrineMath 4.2
- BrineText 4.0
- BrinePic 1.0
- BrineFormat 2.6
- BrinePeripheral 1.0
Note: These are loaded when you run LoadAPIS.
BrineUtil.Update()
Update to the latest version of BrineUtil.
BrineUtil.Uninstall()
Uninstall BrineUtil. (Please don't go!)
BrineUtil.VersionCheck()
Lists the versions of all the APIS and BrineUtil that you have installed.
BrineMath Functions
BrineMath.Average(T)
T is many arguments no longer in the form of a table. (Thank You! Luca_S)
Ex: BrineMath.Average(5,7,6,8,9,10)
Returns NOT 38.3333333 but rather 7.5 ( Thank you Stekeblad for fixing probably the dumbest typo! )
BrineMath.CircArea( R )
R represents radius
Ex: BrineMath.CircArea(3)
Returns 28.274334
BrineMath.Root(R, N)
R represents the root you're looking for (Square = 2, Cubic = 3, 4th root, 5th root...)
N represents the number you are finding the root of
Ex: BrineMath.Root(7,128)
returns the 7th root of 128 which is 2
BrineMath.Circumference®
R represents Radius
Ex: BrineMath.Circumference(5)
Returns 31.415926
BrineMath.InjectMath()
Inserts these functions directly into the math API (undone once shutdown)
reversible using BrineMath.ExtractMath()
BrineText Functions
BrineText.WritePos(T, X, Y)
Writes T at X,Y on the terminal
BrinePic Functions
BrinePic.Draw(I, X, Y)
Draws the Image I at X, Y on the terminal
BrinePic.CenterImage(I)
Centers The Image I on the terminal
BrineFormat Functions
BrineFormat.TextBin(C, S)
S = a series of 1 character long strings Ex: C,"B","a","c","o","n"
C = whether or not to concatinate (true/false) Ex: true,"B","a","c","o","n"
Converts a set of characters to binary and returns them as either a table of strings or a single string.
If the second argument is a table that will be used rather than the other arguments.
BrineFormat.BinText(C, B )
B = one or more sets of 8 digits either 1's or 0's that represent a binary character Ex: C,01000010,01100001,01100011,01101111,01101110
C = whether or not to concatenate (true/false) Ex: true,01000010,01100001,01100011,01101111,01101110
Convert one or more sets of 8 binary digits to a single character and returns them as either a table of strings or a singular string.
If the second argument is a table that will be used rather than the other arguments.
BrineFormat.TblStr(...)
... = multiple Tables
Combines all values in the tables into 1 string.
BrineFormat.StrTbl(S, L)
S = String
L = Output String Legnth
Separates S into a table with stings with length L.
BrineFormat.SwapVars(V1,V2)
Swaps the values of 2 variables.
Usage: V1, V2 = BrineFormat.SwapVars(V1, V2)
BrinePeripheral Functions
BrinePeripheral.ListType(T)
T = Peripheral type you are searching for.
Creates a table of all connected L peripherals
Usage: Monitors = BrinePeripheral.ListType("monitor")
Have any suggestions for a new API? Or for a new function in an existing API? I consider everything and credit those who contribute!
I am accepting new conversion Ideas for BrineConvert! Suggest them in a reply and they could be featured in BrineConvert! Credit will be given to those who contribute!
Download by using the command below!
pastebin run t0aw2K2m <Optional Install Directory>
Load all the APIs at once by running LoadAPIS (accessible from anywhere by typing /YOURINSTALLDIRECTORY/LoadAPIS)
The installer was made using Packager! you should go check it out!
Edited by KidBrine, 03 March 2018 - 06:16 PM.












