Skip to content

Commit

Permalink
app image was added
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAsmirko committed Mar 12, 2021
1 parent 9821537 commit 4981e1c
Show file tree
Hide file tree
Showing 86 changed files with 17 additions and 13 deletions.
Binary file modified .gradle/6.7.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/6.7.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/6.7.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/6.7.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified build/classes/kotlin/main/Constants.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/LeftViewType.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$buttonInBox$1$1$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$buttonInBox$1$2$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$buttonInBox$1$3$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$buttonInBox$1$4.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$drawPoints$sorted$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$functionsButtonsText$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$functionsButtonsText$2.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$functionsButtonsText$3.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$functionsButtonsText$4.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$functionsButtonsText$5.class
Binary file not shown.
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$1$1$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$10.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$11$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$2$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$3$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$4$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$5$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$6.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$7$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$8.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$1$9$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1$1$2.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$main$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt$plotView$1.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MainKt.class
Binary file not shown.
Binary file modified build/classes/kotlin/main/MethodType.class
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/build-history.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
é
á
Ø í í í í ñ À À À À À À Ä ý
ÀÀ
ÀÀÀÀÃ
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
джжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжьыыыыыыыыыыышшшшшшшдддьоооооИИИИИИИИИИ
джжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжьыыыыыыыыыыышшшшшшшдддьоооооИИИИИИИИИИИИз
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Юххххххххххххххххххххххххххххххххххххххххххххххххххт!м"У)У)У)У)У)Щ)У(У(У(У(У(У(о(Г)Г)Г)Г)Г)й(п(у)у.в.в.в.в.в.в.в.в.в.в.в.в.в.в.в.
Юххххххххххххххххххххххххххххххххххххххххххххххххххт!м"У)У)У)У)У)Щ)У(У(У(У(У(У(о(Г)Г)Г)Г)Г)й(п(у)у.в.в.в.в.в.в.в.в.в.в.в.в.в.в.в.в.в.д.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
������������
윌촌︌︌︌︌︌︌︌,︌︌︌︌,
Binary file modified build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/subtypes.tab
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/supertypes.tab
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions build/kotlin/compileKotlin/caches-jvm/lookups/counters.tab
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
117
114
120
117
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.len
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ΰΪκΡχάχκΞήΠυΥΟοιαόρύΕγΰΦΧέαωΘβΜΥτοξχζήθάΰΗέ�ΓλΣίΓνμιλεΰ�ΕβϊεαΗπήηζςθ�ΤϋΙααΕνΟκςρχωΦςωΩδΣΒήΛέΟΣΑ�τθξφϊΕΕϊψΑΪΰβυηϊ�ηηΑςάΠφψΨΠΞτΤΛψβΤλΞΡόοΖΔπΛ
ηΫόμΟΞΙΦχέΙΥΓοΟξΙννεΦρ
Expand Down
Binary file modified build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/last-build.bin
Binary file not shown.
Binary file added img/appIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Canvas
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Paint
import androidx.compose.ui.graphics.*
import androidx.compose.ui.input.pointer.pointerMoveFilter
import androidx.compose.ui.layout.WithConstraints
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import model.PlotData
import model.interpolators.FunctionInterpolator
import java.awt.image.BufferedImage
import java.io.File
import javax.imageio.ImageIO
import javax.swing.Icon
import kotlin.math.log2
import kotlin.math.pow
import kotlin.math.sin
Expand Down Expand Up @@ -58,10 +59,13 @@ val functionsButtonsText = mapOf(
Pair("y = x^2", fun(x: Float): Float { return x.pow(2f) }),
Pair("y = x^3", fun(x: Float): Float { return x.pow(3f) }),
Pair("y = sin(x)", fun(x: Float): Float { return sin(x) }),
Pair("y = log2(x)", fun(x: Float): Float { return log2(x) })
Pair("y = log2(x)", fun(x: Float): Float { return log2(x) }),
Pair("y = x^2 * cos(x)", fun(x: Float): Float {return x.pow(2f) * sin(x)})
)

fun main() = Window(title = Constants.TITLE) {
val appImg: BufferedImage = ImageIO.read(File("./img/appIcon.png"))

fun main() = Window(title = Constants.TITLE, icon = appImg) {
MaterialTheme {
var leftViewType by remember { mutableStateOf(LeftViewType.METHOD) }
var func by remember { mutableStateOf(Constants.NONE_FUNC) }
Expand Down

0 comments on commit 4981e1c

Please sign in to comment.