Going back to the canvas thing
This commit is contained in:
+1
-10
@@ -17,16 +17,7 @@
|
||||
</ul>
|
||||
</header>
|
||||
<article id="play_area" style="background-color: #@Model.BorderColor">
|
||||
<div id="play_space" style="height: @(Model.Height)px; width: @(Model.Width)px">
|
||||
@for (var index = 0; index < Model.Cels.Length; index++)
|
||||
{
|
||||
var cel = Model.Cels[index];
|
||||
<div class="cel-image"
|
||||
style="background-image: url('data:image/gif;base64,@cel.Image'); height: @(cel.Height)px; width: @(cel.Width)px; z-index: @cel.ZIndex; opacity: @cel.Opacity"
|
||||
data-id="@cel.Mark"
|
||||
data-index="@index"></div>
|
||||
}
|
||||
</div>
|
||||
<canvas id="play_space" style="height: @(Model.Height)px; width: @(Model.Width)px" height="@Model.Height" width="@Model.Width"></canvas>
|
||||
</article>
|
||||
@section Scripts
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user