Use https everywhere - tests and test data
This commit is contained in:
committed by
Ilya Chernikov
parent
7135f1972a
commit
028a311949
@@ -72,7 +72,7 @@ class Logo(override var pos: Vector) : Shape() {
|
||||
fun drawLogo(state: CanvasState) {
|
||||
size = imageSize * (state.size.x / imageSize.x) * relSize
|
||||
// getKotlinLogo() is a 'magic' function here defined only for purposes of demonstration but in fact it just find an element containing the logo
|
||||
state.context.drawImage(getImage("http://try.kotlinlang.org/static/images/canvas/Kotlin-logo.png"), 0.0, 0.0,
|
||||
state.context.drawImage(getImage("https://try.kotlinlang.org/static/images/canvas/Kotlin-logo.png"), 0.0, 0.0,
|
||||
imageSize.x, imageSize.y,
|
||||
position.x, position.y,
|
||||
size.x, size.y)
|
||||
|
||||
@@ -29,7 +29,7 @@ val context: CanvasRenderingContext2D
|
||||
}
|
||||
|
||||
|
||||
val PATH_TO_IMAGES = "http://try.kotlinlang.org/static/images/canvas/"
|
||||
val PATH_TO_IMAGES = "https://try.kotlinlang.org/static/images/canvas/"
|
||||
|
||||
|
||||
val state: CanvasState by lazy { CanvasState(canvas) }
|
||||
|
||||
Reference in New Issue
Block a user