Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

Commit

Permalink
0.1 Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
pouyakary committed Apr 24, 2015
1 parent a8817c4 commit 7c64d5c
Show file tree
Hide file tree
Showing 17 changed files with 110 additions and 3 deletions.
Binary file modified Int/bin/Debug/Int.exe
Binary file not shown.
Binary file modified Int/bin/Debug/Int.exe.mdb
Binary file not shown.
Binary file modified Int/bin/Debug/Kary.Intactus.dll
Binary file not shown.
Binary file modified Int/bin/Debug/Kary.Intactus.dll.mdb
Binary file not shown.
Binary file modified Int/bin/Debug/Kary.Leopard.dll
Binary file not shown.
Binary file modified Int/obj/Debug/Int.exe
Binary file not shown.
Binary file modified Int/obj/Debug/Int.exe.mdb
Binary file not shown.
6 changes: 3 additions & 3 deletions Intactus.userprefs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="Intactus/Notation/Intactus.Notation.FunctionReplacer.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="Intactus/Charts/Intactus.Charts.ColumnCharts.cs">
<Files>
<File FileName="Intactus/Notation/Intactus.Notation.FunctionReplacer.cs" Line="22" Column="10" />
<File FileName="Intactus/Charts/Intactus.Charts.ColumnCharts.cs" Line="1" Column="1" />
<File FileName="Intactus/Notation/Intactus.Notation.FunctionReplacer.cs" Line="1" Column="1" />
<File FileName="Intactus/Charts/Intactus.Charts.ColumnCharts.cs" Line="18" Column="3" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
Expand Down
1 change: 1 addition & 0 deletions Intactus/Kary.Intactus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Kary.Intactus</RootNamespace>
<AssemblyName>Kary.Intactus</AssemblyName>
<SynchReleaseVersion>false</SynchReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
Binary file modified Intactus/bin/Debug/Kary.Intactus.dll
Binary file not shown.
Binary file modified Intactus/bin/Debug/Kary.Intactus.dll.mdb
Binary file not shown.
Binary file modified Intactus/bin/Debug/Kary.Leopard.dll
Binary file not shown.
Binary file modified Intactus/obj/Debug/Kary.Intactus.dll
Binary file not shown.
Binary file modified Intactus/obj/Debug/Kary.Intactus.dll.mdb
Binary file not shown.
106 changes: 106 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
![](title.png)

Intactus is a super lightweight kit based on the Kary Framework's Leopard text facilities that provides native "text based" ASCII art like Mathematical Notation and Chart rendering for .NET technologies.

The text rendered using Intactus is better to be displayed using `Menlo` font family.

<br>

![](int.png)

<br>

## API

#### Intactus.Notation

To create "Mathematical Notation" you can use this simple API

```C#
Intactus.Notation.Generate( string );
```

You feed it with a string representation of your notation and it will simply generate you an advance rendering:

``C#
string simple_notation = "sqrt( abs( -32 / 2 ) )"
string rendered_notion = Intactus.Notation.Generate(simple_notation);
``

And then the `rendered_notion` will be:

```
┌ ┐
⎪ ___________ ⎪
⎪ ╱ ⎜ ⎟ ⎪
⎪ ╱ ⎜ -32 ⎟ ⎪
⎪ ╱ ⎜ ───── ⎟ ⎪
⎪ ╱ ⎜ 2 ⎟ ⎪
⎪ ╲╱ ⎜ ⎟ ⎪
⎪ ⎪
└ ┘
```

<br>

#### Intactus.Charts.ColumnChart

The API lets you create a column chart with your own defined with an specified height size and using an array of numbers:

```C#
Intactus.Charts.ColumnChart (double[] numbers, int height);
```

So for example this code:

```C#
double[] numbers = {33.5, 10, 24, 11.23, 34.32};
Intactus.Charts.ColumnChart (numbers, 15);
```

Will result:

```
│ ┌─┐
│ ┌─┐ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ ┌─┐ │ │
│ │ │ │ │ │ │
│ │ │ │ │ │ │
│ │ │ │ │ │ │
│ │ │ │ │ │ │
│ │ │ ┌─┐ │ │ ┌─┐ │ │
│ │ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │ │
└──┴─┴──┴─┴──┴─┴──┴─┴──┴─┴──
1 2 3 4 5
```


<br><br>

## License

```
Kary.Intactus - Advance Mathematical Notation and Chart Rendering Kit
Copyright (c) 2015 Kary Systems, Inc. All rights reserved.
Copyright (c) 2015 Pouya Kary <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
```
Binary file added int.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c64d5c

Please sign in to comment.